diff --git a/runtime/cfg.c b/runtime/cfg.c index 015cda1b..64d0fda6 100644 --- a/runtime/cfg.c +++ b/runtime/cfg.c @@ -122,7 +122,7 @@ static const CfgMeta metas[] = { {"HDR", "0", "0|1", RESTART}, {"HDR_PEAK_NITS", "1000", "400..10000", LIVE}, {"HDR_GAME_NITS", "203", "80..500", LIVE}, {"HDR_UI_NITS", "203", "80..500", LIVE}, {"DEVICE_PROFILE", "auto", "auto|desktop|deck", RESTART}, - {"SHADOW_RES", "game", "game|512|768|1024|1536|2048", RESTART}, + {"SHADOW_RES", "game", "game|256|512|768|1024|1536|2048", RESTART}, {"SHADOW_SCALE", "1", "1..4", RESTART}, {"SHADOW_RANGE", "100", "50..400", RESTART}, {"CONTACT_SHADOWS", "0", "0..100", RESTART}, {"PCSS", "0", "0..200", RESTART}, diff --git a/runtime/ui/menu.cpp b/runtime/ui/menu.cpp index 151354e0..c6a2ac7a 100644 --- a/runtime/ui/menu.cpp +++ b/runtime/ui/menu.cpp @@ -518,7 +518,7 @@ static void row_render_scale(void) { } static void row_shadow_res(void) { - static const char *const vals[] = {"game", "512", "768", "1024", "1536", "2048"}; + static const char *const vals[] = {"game", "256", "512", "768", "1024", "1536", "2048"}; enum { N = sizeof vals / sizeof *vals }; const char *names[N]; names[0] = menu_text(UI_MENU_SHADOW_RES_GAME); diff --git a/runtime/ui_text.c b/runtime/ui_text.c index 5c14ed53..dc845006 100644 --- a/runtime/ui_text.c +++ b/runtime/ui_text.c @@ -74,7 +74,8 @@ static const char *const text_en[UI_TEXT_COUNT] = { [UI_MENU_SHADOW_RES] = "Shadow map size", [UI_MENU_SHADOW_RES_DESC] = "Size of the sun's shadow map. The game's own size changes with the view, down to about 400 " "near the ground, so leaf shadows look blocky and jump; a fixed size keeps them still and " - "sharper. Above 1024 the shadows cost more GPU time and video memory.", + "sharper. Above 1024 the shadows cost more GPU time and video memory; 256 is coarser than the " + "game's own and is for integrated GPUs short of memory bandwidth.", [UI_MENU_SHADOW_RES_GAME] = "Game (changes)", [UI_MENU_ANISO] = "Texture filtering", [UI_MENU_ANISO_DESC] = "Anisotropic filtering of surface textures: ground, roads and walls seen at a shallow angle stay sharp into the distance instead of blurring. Game: the level the game asks for, as on the Switch.", @@ -498,7 +499,8 @@ static const char *const text_ru[UI_TEXT_COUNT] = { [UI_MENU_SHADOW_RES] = "Размер карты теней", [UI_MENU_SHADOW_RES_DESC] = "Размер карты теней от солнца. Собственный размер игры меняется вместе с видом, у земли до " "примерно 400, поэтому тени листвы выглядят квадратными и дёргаются; постоянный размер делает " - "их ровными и чётче. Выше 1024 тени требуют больше времени GPU и видеопамяти.", + "их ровными и чётче. Выше 1024 тени требуют больше времени GPU и видеопамяти; 256 грубее " + "собственного размера игры и предназначен для встроенных GPU с нехваткой пропускной способности памяти.", [UI_MENU_SHADOW_RES_GAME] = "Как в игре (меняется)", [UI_MENU_ANISO] = "Фильтрация текстур", [UI_MENU_ANISO_DESC] = "Анизотропная фильтрация текстур поверхностей: земля, дороги и стены под острым углом остаются чёткими вдали, а не размываются. Игра: уровень, который запрашивает игра, как на Switch.", @@ -1196,7 +1198,8 @@ static const char *const text_pt_br[UI_TEXT_COUNT] = { [UI_MENU_SHADOW_RES_DESC] = "Tamanho do mapa de sombras do sol. O tamanho do jogo muda com a vista, até cerca de " "400 perto do chão, então as sombras das folhas ficam quadriculadas e pulam; um " "tamanho fixo as deixa paradas e mais nítidas. Acima de 1024 as sombras custam mais " - "tempo de GPU e memória de vídeo.", + "tempo de GPU e memória de vídeo; 256 é mais grosseiro que o do jogo e serve para GPUs " + "integradas com pouca largura de banda de memória.", [UI_MENU_SHADOW_RES_GAME] = "Do jogo (varia)", [UI_MENU_ANISO] = "Filtragem de texturas", [UI_MENU_ANISO_DESC] = "Filtragem anisotrópica das texturas de superfície: chão, estradas e paredes vistos em " @@ -1795,7 +1798,7 @@ static const char *const text_zh_hans[UI_TEXT_COUNT] = { [UI_MENU_OV_SCALE_BILINEAR] = "双线性", [UI_MENU_SHADOW_RES] = "阴影贴图尺寸", [UI_MENU_SHADOW_RES_DESC] = "太阳阴影贴图的尺寸。游戏自身的尺寸随视角变化,靠近地面时降到约 400,因此树叶阴影显得块状并且跳动;固定尺寸能让阴影稳定、更清晰。高于 1024 时阴影会占用更多 " - "GPU 时间和显存。", + "GPU 时间和显存;256 比游戏自身的尺寸更粗糙,适合显存带宽不足的集成显卡。", [UI_MENU_SHADOW_RES_GAME] = "游戏默认(会变化)", [UI_MENU_ANISO] = "纹理过滤", [UI_MENU_ANISO_DESC] = "表面纹理的各向异性过滤:以小角度看到的地面、道路和墙壁在远处依然清晰,而不会模糊。游戏:使用游戏请求的级别,与 Switch 上相同。", diff --git a/totk.ini.example b/totk.ini.example index 227a923f..d326e511 100644 --- a/totk.ini.example +++ b/totk.ini.example @@ -160,8 +160,8 @@ # color_saturation = 100 # color_gamma = 1 # 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. +# leaf shadows look blocky and jump) or a fixed 256, 512, 768, 1024, 1536 or 2048. Above 960 the texture heap grows with +# it. 256 is coarser than the game's own and is for integrated GPUs short of memory bandwidth. Read at start. # shadow_res = game # Shadow map resolution: the game's sun cascades are 960x960 (and its static shadow maps 1440 and 720) whatever the game