From d07a71f0cab33a938d595a54f1586a973a6602b4 Mon Sep 17 00:00:00 2001 From: Valiantsin Dzerakh Date: Sun, 1 Nov 2026 11:02:57 +0300 Subject: [PATCH] Keep the game's own sun shadow map size by default A fixed 1024 map costs GPU time and texture heap on every install, also where the game would draw a smaller one; the fixed sizes stay a choice in the menu and totk.ini. Co-Authored-By: Claude Opus 5.5 --- runtime/cfg.c | 2 +- totk.ini.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/cfg.c b/runtime/cfg.c index 62ebd03d..4bc12865 100644 --- a/runtime/cfg.c +++ b/runtime/cfg.c @@ -105,7 +105,7 @@ static const CfgMeta metas[] = { {"COLOR_CONTRAST", "100", "70..150", LIVE}, {"COLOR_SATURATION", "100", "50..200", LIVE}, {"COLOR_GAMMA", "1", "0.8..1.2", LIVE}, {"DEVICE_PROFILE", "auto", "auto|desktop|deck", RESTART}, - {"SHADOW_RES", "1024", "game|512|768|1024|1536|2048", RESTART}, + {"SHADOW_RES", "game", "game|512|768|1024|1536|2048", RESTART}, // Game {"FPS_LIMIT", "60", "30|40|45|60|90|120|144|display", LIVE}, {"FPS60", "1", "0|1", LIVE}, {"REALTIME", "1", "0|1", RESTART}, {"CLOTH_REALTIME", "1", "0|1", RESTART}, diff --git a/totk.ini.example b/totk.ini.example index cf9e59ab..c8b1def8 100644 --- a/totk.ini.example +++ b/totk.ini.example @@ -158,7 +158,7 @@ # Sun shadow map size: game (the game's own, which changes with the view and drops to about 400 near the ground, so # leaf shadows look blocky and jump) or a fixed 512, 768, 1024, 1536 or 2048. Above 960 the texture heap grows with it. # Read at start. -# shadow_res = 1024 +# shadow_res = game [language] # Language: a Windows locale such as de-DE, or a Switch code (en-US, ja, zh-Hant, ...). Default: the Windows locale.