From 3de08398bf521fc5a2dbaa02960dbe601ee8056a Mon Sep 17 00:00:00 2001 From: Valiantsin Dzerakh Date: Mon, 2 Nov 2026 03:36:38 +0300 Subject: [PATCH] Size the scene by the DLSS mode only while DLSS/DLAA is on With dlaa = 0 and dlss = quality left from the menu, the scene still rendered at 67 % and the plain upscaler stretched it, so the picture looked blurrier with DLSS switched off. Co-Authored-By: Claude Opus 5.5 --- runtime/resolution.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/resolution.c b/runtime/resolution.c index 060006b7..d1941300 100644 --- a/runtime/resolution.c +++ b/runtime/resolution.c @@ -71,10 +71,12 @@ static void decide(void) { } const char *s = cfg_value("TOTK_RENDER_SCALE"); double k = 5.0 / 6.0; - const char *m = cfg_value("TOTK_DLSS"); // a DLSS mode other than dlaa sets the scene size + // a DLSS mode other than dlaa sets the scene size, only while DLSS/DLAA is on: switched off, the mode the menu + // still holds would shrink the scene for the plain upscaler + const char *m = cfg_value("TOTK_DLSS"); static const struct { const char *name; double k; } dlss[] = { {"quality", 2.0 / 3.0}, {"balanced", 0.58}, {"performance", 0.5}}; - for (int i = 0; i < 3; i++) + for (int i = 0; cfg_bool("TOTK_DLAA") && i < 3; i++) if (!strcmp(m, dlss[i].name)) R.dlss_k = dlss[i].k; if (R.dlss_k) { k = R.dlss_k;