Show the upscaler's rows by the upscaler chosen, and give FSR a sharpness of its own

The Screen tab shows the upscaler mode, the character trails and the effects-after point for any upscaler, the DLSS
model and fixed exposure with DLSS only, and the new fsr_sharpness (default 80) with FSR only; FSR 1's window scaling
keeps sharpness, next to its own row. Rows that serve both upscalers lose DLSS from their names (Upscaler mode with
Native, Fog and particles after the upscaler), and Reflex moves ahead of the upscaler's rows. Texts in all four menu
languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
codexx-devandClaude Opus 5.5 committed 2026-11-19 23:13:40 -03:00
1 parent 06ab655e04
commit da9c006039
6 files changed
+127 -89

No files matched your search

+3 -3
View File
@@ -44,7 +44,7 @@ static const char *const known[] = {
"DESC_TEMPLATE", "DESWIZZLE", "DEVICE_PROFILE", "DIALOGUE_CLICK", "DISCORD_APP_ID", "DISCORD_IMAGE", "DISCORD_RPC", "DLAA", "DLAA_BACKEND", "DLAA_CAM_JITTER", "DLAA_EFFECTS_AFTER", "DLAA_JITTER", "DLAA_MV", "DLAA_MASKDEBUG", "DLAA_MVDEBUG", "DLAA_OBJMV", "DLAA_SURVEY", "DLAA_TIMES", "DLSS", "DLSS_CHAR_MASK", "DLSS_FIXED_EXPOSURE", "DLSS_PRESET", "DLSS_REACTIVE", "DUMP", "DUMP_BUF", "DUMP_DIR",
"DUMP_LOG", "DYNAMIC_RES", "DYN_DELTA", "EXEFS", "FEEDBACK", "FIXED_RES_PATCH", "FIX_C0", "FIX_ZERO", "FLIGHT", "FLIGHT_AT", "FLIGHT_DIR", "FLIGHT_FRAMES",
"FLIGHT_SPIKE_MS", "FLIGHT_THUMBS", "FLUSH_SPAN", "FOV", "FOV_PATCH", "FPS60", "FPS_LIMIT", "FRAME_QUEUE",
"FREEZE_IDLE", "FREE_CORES", "FSR_DEBUG", "FSR_JITTER_SIGN",
"FREEZE_IDLE", "FREE_CORES", "FSR_DEBUG", "FSR_JITTER_SIGN", "FSR_SHARPNESS",
"FULLSCREEN", "FXAA",
"GAMEPLAY_DISTANCE_SENSITIVITY", "GAMEPLAY_ITEM_AD", "GAMEPLAY_ITEM_SENSITIVITY", "GAMEPLAY_ITEM_WHEEL",
"GAMEPLAY_MAP_ZOOM", "GAMEPLAY_MAP_ZOOM_SENSITIVITY", "GAMEPLAY_ROTATION_SENSITIVITY", "GAMEPLAY_TWEAKS_ENABLED",
@@ -80,7 +80,7 @@ static const struct { const char *key, *section; } sections[] = {
{"FULLSCREEN", "display"}, {"WINDOW_SIZE", "display"}, {"PERF_OVERLAY", "display"}, {"VK_PRESENT", "display"},
{"GPU_INDEX", "display"}, {"OUTPUT_RES", "display"}, {"RENDER_SCALE", "display"}, {"UPSCALER", "display"},
{"HUD_WIDTH", "display"},
{"SHARPNESS", "display"}, {"DYNAMIC_RES", "display"}, {"ASPECT", "display"}, {"MOVIE_ASPECT", "display"}, {"FOV", "display"}, {"ANISO", "display"},
{"SHARPNESS", "display"}, {"FSR_SHARPNESS", "display"}, {"DYNAMIC_RES", "display"}, {"ASPECT", "display"}, {"MOVIE_ASPECT", "display"}, {"FOV", "display"}, {"ANISO", "display"},
{"LOD_STEADY", "display"}, {"COLOR_PRESET", "display"},
{"COLOR_BRIGHTNESS", "display"}, {"COLOR_CONTRAST", "display"}, {"COLOR_SATURATION", "display"},
{"COLOR_GAMMA", "display"}, {"HDR", "display"}, {"HDR_PEAK_NITS", "display"}, {"HDR_GAME_NITS", "display"},
@@ -140,7 +140,7 @@ static const CfgMeta metas[] = {
{"OUTPUT_RES", "1920x1080", NULL, RESTART}, {"RENDER_SCALE", "game", "game|50|67|75|100|125|150|200", RESTART},
{"HUD_WIDTH", "full", "full|21:9|16:9", RESTART},
{"DYNAMIC_RES", "1", "0|1", LIVE}, // resolution.c res_dynres_live
{"UPSCALER", "fsr", "fsr|bilinear", LIVE}, {"SHARPNESS", "80", "0..100", LIVE},
{"UPSCALER", "fsr", "fsr|bilinear", LIVE}, {"SHARPNESS", "80", "0..100", LIVE}, {"FSR_SHARPNESS", "80", "0..100", LIVE},
{"DLAA", "0", "0|1", RESTART}, {"DLAA_BACKEND", "dlss", "dlss|fsr|fsr3", RESTART}, {"DLSS", "dlaa", "dlaa|quality|balanced|performance|ultra_performance", LIVE},
{"DLSS_PRESET", "default", "default|k|j", LIVE}, {"DLSS_FIXED_EXPOSURE", "0", "0|1", LIVE}, {"DLAA_EFFECTS_AFTER", "0", "0|1", LIVE},
{"DLSS_CHAR_MASK", "65", "0|35|65|100", LIVE}, {"REFLEX", "off", "off|on|boost", RESTART}, {"FXAA", "1", "0|1", LIVE},
+46 -21
View File
@@ -733,17 +733,27 @@ static const char *present_note(void) {
// The upscaler of the 3D scene, one row over two settings: dlaa (off or on) and dlaa_backend (NVIDIA DLSS, AMD FSR 4 or
// AMD FSR 3). AMD ships FSR's Vulkan libraries for Windows only, so Linux has DLSS alone (vk_dlaa.c fsr_backend).
#ifdef _WIN32
enum { UPSCALER_CHOICES = 4 };
#else
enum { UPSCALER_CHOICES = 2 };
#endif
// The row's choice as the settings hold it: 0 off, 1 NVIDIA DLSS, 2 AMD FSR 4, 3 AMD FSR 3.
static int upscaler_choice(void) {
const char *be = cfg_value("TOTK_DLAA_BACKEND");
if (!cfg_bool("TOTK_DLAA")) return 0;
if (UPSCALER_CHOICES > 3 && !strcmp(be, "fsr3")) return 3;
if (UPSCALER_CHOICES > 2 && !strcmp(be, "fsr")) return 2;
return 1;
}
static void row_upscalers(void) {
static const UiTextId ids[] = {UI_MENU_DLAA_OFF, UI_MENU_DLAA_BACKEND_DLSS, UI_MENU_DLAA_BACKEND_FSR,
UI_MENU_DLAA_BACKEND_FSR3};
static const char *const backends[] = {"", "dlss", "fsr", "fsr3"};
#ifdef _WIN32
const int n = 4;
#else
const int n = 2;
#endif
const char *be = cfg_value("TOTK_DLAA_BACKEND");
int cur = !cfg_bool("TOTK_DLAA") ? 0 : n > 3 && !strcmp(be, "fsr3") ? 3 : n > 2 && !strcmp(be, "fsr") ? 2 : 1;
const int n = UPSCALER_CHOICES;
int cur = upscaler_choice();
int step = opt_choice_step("TOTK_DLAA", UI_MENU_DLAA, menu_text(ids[cur]), cur == 0, UI_MENU_DLAA_DESC);
if (!step) return;
// A / click: the next value, round to the first; left / right stop at the ends (as opt_choice_list)
@@ -754,6 +764,33 @@ static void row_upscalers(void) {
opt_save_soon();
}
// The upscaler's rows, in the Picture group: the upscaler, then the rows of the one chosen. Every upscaler takes the
// mode (the scene's size), the characters' bias mask and the effects-after point (vk_dlaa.c, shared by both); the DLSS
// model and its fixed exposure are DLSS's alone, the sharpening FSR's. The rows follow the setting, not the upscaler
// running, which changes at the next start: the player sees the rows of what they picked.
static void rows_upscaler(void) {
row_upscalers();
int up = upscaler_choice();
if (up) {
static const UiTextId mode[] = {UI_MENU_DLSS_DLAA, UI_MENU_DLSS_QUALITY, UI_MENU_DLSS_BALANCED,
UI_MENU_DLSS_PERFORMANCE, UI_MENU_DLSS_ULTRA};
opt_choice("TOTK_DLSS", UI_MENU_DLSS, mode, 5, UI_MENU_DLSS_DESC);
}
if (up == 1) {
static const UiTextId preset[] = {UI_MENU_DLSS_PRESET_DEFAULT, UI_MENU_DLSS_PRESET_K, UI_MENU_DLSS_PRESET_J};
opt_choice("TOTK_DLSS_PRESET", UI_MENU_DLSS_PRESET, preset, 3, UI_MENU_DLSS_PRESET_DESC);
opt_toggle("TOTK_DLSS_FIXED_EXPOSURE", UI_MENU_DLSS_FIXED_EXPOSURE, UI_MENU_DLSS_FIXED_EXPOSURE_DESC);
}
if (up >= 2)
opt_slider("TOTK_FSR_SHARPNESS", UI_MENU_FSR_SHARPNESS, 0, 100, UI_MENU_FSR_SHARPNESS_DESC, 5, "%.0f %%");
if (up) {
static const UiTextId chars[] = {UI_MENU_DLSS_CHARS_OFF, UI_MENU_DLSS_CHARS_LIGHT, UI_MENU_DLSS_CHARS_MEDIUM,
UI_MENU_DLSS_CHARS_FULL};
opt_choice("TOTK_DLSS_CHAR_MASK", UI_MENU_DLSS_CHARS, chars, 4, UI_MENU_DLSS_CHARS_DESC);
opt_toggle("TOTK_DLAA_EFFECTS_AFTER", UI_MENU_DLAA_EFFECTS_AFTER, UI_MENU_DLAA_EFFECTS_AFTER_DESC);
}
}
// ---- the tabs
// Colour adjustment (vk_color.c): a profile writes the four values (STS78721's presets, issue #136); moving one of them
// makes the profile Custom.
@@ -801,6 +838,7 @@ static void tab_screen(float scale) {
row_shadow_res();
static const UiTextId up[] = {UI_MENU_UPSCALER_FSR, UI_MENU_UPSCALER_BILINEAR};
opt_choice("TOTK_UPSCALER", UI_MENU_UPSCALER, up, 2, UI_MENU_UPSCALER_DESC);
opt_slider("TOTK_SHARPNESS", UI_MENU_SHARPNESS, 0, 100, UI_MENU_SHARPNESS_DESC, 5, "%.0f %%");
static const UiTextId aspect[] = {UI_MENU_ASPECT_FIT, UI_MENU_ASPECT_STRETCH};
opt_choice("TOTK_ASPECT", UI_MENU_ASPECT, aspect, 2, UI_MENU_ASPECT_DESC);
static const UiTextId movie_aspect[] = {UI_MENU_MOVIE_ASPECT_KEEP, UI_MENU_MOVIE_ASPECT_STRETCH};
@@ -815,22 +853,9 @@ static void tab_screen(float scale) {
opt_toggle("TOTK_LOD_STEADY", UI_MENU_LOD_STEADY, UI_MENU_LOD_STEADY_DESC);
opt_slider("TOTK_PCSS", UI_MENU_PCSS, 0, 200, UI_MENU_PCSS_DESC, 10, "%.0f %%");
opt_slider("TOTK_CONTACT_SHADOWS", UI_MENU_CONTACT_SHADOWS, 0, 100, UI_MENU_CONTACT_SHADOWS_DESC, 10, "%.0f %%");
row_upscalers();
static const UiTextId dlss[] = {UI_MENU_DLSS_DLAA, UI_MENU_DLSS_QUALITY, UI_MENU_DLSS_BALANCED,
UI_MENU_DLSS_PERFORMANCE, UI_MENU_DLSS_ULTRA};
opt_choice("TOTK_DLSS", UI_MENU_DLSS, dlss, 5, UI_MENU_DLSS_DESC);
static const UiTextId preset[] = {UI_MENU_DLSS_PRESET_DEFAULT, UI_MENU_DLSS_PRESET_K, UI_MENU_DLSS_PRESET_J};
opt_choice("TOTK_DLSS_PRESET", UI_MENU_DLSS_PRESET, preset, 3, UI_MENU_DLSS_PRESET_DESC);
static const UiTextId chars[] = {UI_MENU_DLSS_CHARS_OFF, UI_MENU_DLSS_CHARS_LIGHT, UI_MENU_DLSS_CHARS_MEDIUM,
UI_MENU_DLSS_CHARS_FULL};
opt_choice("TOTK_DLSS_CHAR_MASK", UI_MENU_DLSS_CHARS, chars, 4, UI_MENU_DLSS_CHARS_DESC);
// FSR's sharpening, with the upscaler's rows: of the scene FSR anti-aliases (vk_dlaa.c evaluate) and of the picture
// FSR 1 scales to the window (vk_fsr.c)
opt_slider("TOTK_SHARPNESS", UI_MENU_SHARPNESS, 0, 100, UI_MENU_SHARPNESS_DESC, 5, "%.0f %%");
opt_toggle("TOTK_DLSS_FIXED_EXPOSURE", UI_MENU_DLSS_FIXED_EXPOSURE, UI_MENU_DLSS_FIXED_EXPOSURE_DESC);
opt_toggle("TOTK_DLAA_EFFECTS_AFTER", UI_MENU_DLAA_EFFECTS_AFTER, UI_MENU_DLAA_EFFECTS_AFTER_DESC);
static const UiTextId reflex[] = {UI_MENU_REFLEX_OFF, UI_MENU_REFLEX_ON, UI_MENU_REFLEX_BOOST};
opt_choice("TOTK_REFLEX", UI_MENU_REFLEX, reflex, 3, UI_MENU_REFLEX_DESC);
rows_upscaler();
opt_toggle("TOTK_FXAA", UI_MENU_FXAA, UI_MENU_FXAA_DESC);
rows_color();
opt_group(UI_MENU_HDR_GROUP);
+59 -50
View File
@@ -103,9 +103,11 @@ static const char *const text_en[UI_TEXT_COUNT] = {
[UI_MENU_ANISO_GAME] = "Game",
[UI_MENU_LOD_STEADY] = "Steady detail under load",
[UI_MENU_LOD_STEADY_DESC] = "Skips the game's setup for lowering model and texture detail when the frame rate drops, as the emulator mod Disable LOD Quality Reduction does. Game versions 1.2.1 and 1.4.3. Leave it off on weak PCs: there this drop keeps the frame rate up.",
[UI_MENU_SHARPNESS] = "FSR sharpness",
[UI_MENU_SHARPNESS_DESC] = "How much AMD FSR sharpens: the 3D scene with the AMD FSR upscaler, and the picture FSR 1 scales to "
"the window. 0 turns it off.",
[UI_MENU_SHARPNESS] = "FSR 1 sharpness",
[UI_MENU_SHARPNESS_DESC] = "Sharpening after FSR 1 scales the picture to the window; 0 turns it off.",
[UI_MENU_FSR_SHARPNESS] = "FSR sharpness",
[UI_MENU_FSR_SHARPNESS_DESC] = "How much the AMD FSR upscaler sharpens the 3D scene it smooths; 0 turns it off. "
"Applies at once.",
[UI_MENU_COLOR] = "Colour",
[UI_MENU_COLOR_PRESET] = "Colour profile",
[UI_MENU_COLOR_PRESET_DESC] = "Sets the four values below. Vivid: more contrast and saturation, shadows opened a "
@@ -177,11 +179,11 @@ static const char *const text_en[UI_TEXT_COUNT] = {
"edges a little less smooth. Applies at once.",
[UI_MENU_DLSS_CHARS_OFF] = "Off", [UI_MENU_DLSS_CHARS_LIGHT] = "Light", [UI_MENU_DLSS_CHARS_MEDIUM] = "Medium",
[UI_MENU_DLSS_CHARS_FULL] = "Full",
[UI_MENU_DLSS] = "DLSS mode",
[UI_MENU_DLSS_DESC] = "DLAA draws the 3D scene at full resolution. Quality, Balanced, Performance and Ultra "
"Performance draw it at 67, 58, 50 and 33 % and let DLSS scale it up, which saves GPU time; "
"they replace the 3D render scale. Takes effect at once.",
[UI_MENU_DLSS_DLAA] = "DLAA (native)", [UI_MENU_DLSS_QUALITY] = "Quality", [UI_MENU_DLSS_BALANCED] = "Balanced",
[UI_MENU_DLSS] = "Upscaler mode",
[UI_MENU_DLSS_DESC] = "Native draws the 3D scene at full resolution. Quality, Balanced, Performance and Ultra "
"Performance draw it at 67, 58, 50 and 33 % and let the upscaler (DLSS or FSR) scale it up, "
"which saves GPU time; they replace the 3D render scale. Takes effect at once.",
[UI_MENU_DLSS_DLAA] = "Native", [UI_MENU_DLSS_QUALITY] = "Quality", [UI_MENU_DLSS_BALANCED] = "Balanced",
[UI_MENU_DLSS_PERFORMANCE] = "Performance", [UI_MENU_DLSS_ULTRA] = "Ultra Performance",
[UI_MENU_FXAA] = "Game anti-aliasing (FXAA)",
[UI_MENU_FXAA_DESC] = "The game's own FXAA edge smoothing. It blurs fine detail a little; with DLAA on it is not needed. Off while AMD FSR is on.",
@@ -528,12 +530,12 @@ static const char *const text_en[UI_TEXT_COUNT] = {
[UI_MENU_FIX_C0_DESC] = "Fills the driver-reserved constant bank c0 (storage sizes, dispatch size, point size, base instance) instead of reading zeros.",
[UI_MENU_FIX_ZERO] = "Zero new GPU memory",
[UI_MENU_FIX_ZERO_DESC] = "New GPU memory pools start zero-filled, as Switch memory does.",
[UI_MENU_DLAA_EFFECTS_AFTER] = "Fog and particles after DLAA",
[UI_MENU_DLAA_EFFECTS_AFTER_DESC] = "With DLAA, fog, dust and other particles are drawn over the picture DLSS has"
" already smoothed, as the game draws them without DLSS: small particles in "
"fog (shrines) no longer vanish or leave trails. Off: DLSS also processes "
"these effects, as before. DLAA mode only; the upscaling DLSS modes always "
"process them. Applies at once.",
[UI_MENU_DLAA_EFFECTS_AFTER] = "Fog and particles after the upscaler",
[UI_MENU_DLAA_EFFECTS_AFTER_DESC] = "In the Native mode, fog, dust and other particles are drawn over the picture "
"the upscaler (DLSS or FSR) has already smoothed, as the game draws them "
"without it: small particles in fog (shrines) no longer vanish or leave "
"trails. Off: the upscaler also processes these effects, as before. The "
"upscaling modes always process them. Applies at once.",
[UI_MENU_DLSS_FIXED_EXPOSURE] = "Fixed DLSS exposure",
[UI_MENU_DLSS_FIXED_EXPOSURE_DESC] = "DLSS takes the brightness of the game's picture as it is instead of "
"estimating the exposure from each frame: in dark scenes (the Depths) large "
@@ -723,9 +725,11 @@ static const char *const text_ru[UI_TEXT_COUNT] = {
[UI_MENU_ANISO_GAME] = "Игра",
[UI_MENU_LOD_STEADY] = "Стабильная детализация под нагрузкой",
[UI_MENU_LOD_STEADY_DESC] = "Пропускает настройку игры, снижающую детализацию моделей и текстур при падении частоты кадров, как эмуляторный мод Disable LOD Quality Reduction. Только для версий игры 1.2.1 и 1.4.3. На слабых ПК не включайте: там это снижение и держит частоту кадров.",
[UI_MENU_SHARPNESS] = "Резкость FSR",
[UI_MENU_SHARPNESS_DESC] = "Насколько AMD FSR повышает резкость: 3D-сцены при апскейлере AMD FSR и картинки, которую "
"FSR 1 растягивает под окно. 0 выключает.",
[UI_MENU_SHARPNESS] = "Резкость FSR 1",
[UI_MENU_SHARPNESS_DESC] = "Повышение резкости после масштабирования FSR 1 под окно; 0 выключает его.",
[UI_MENU_FSR_SHARPNESS] = "Резкость FSR",
[UI_MENU_FSR_SHARPNESS_DESC] = "Насколько апскейлер AMD FSR повышает резкость сглаженной им 3D-сцены; 0 выключает. "
"Применяется сразу.",
[UI_MENU_COLOR] = "Цвет",
[UI_MENU_COLOR_PRESET] = "Цветовой профиль",
[UI_MENU_COLOR_PRESET_DESC] = "Задаёт четыре значения ниже. «Яркий»: больше контраста и насыщенности, тени немного "
@@ -798,11 +802,12 @@ static const char *const text_ru[UI_TEXT_COUNT] = {
"гладкие края. Действует сразу.",
[UI_MENU_DLSS_CHARS_OFF] = "Выкл.", [UI_MENU_DLSS_CHARS_LIGHT] = "Слабо", [UI_MENU_DLSS_CHARS_MEDIUM] = "Средне",
[UI_MENU_DLSS_CHARS_FULL] = "Полностью",
[UI_MENU_DLSS] = "Режим DLSS",
[UI_MENU_DLSS_DESC] = "DLAA рисует 3D-сцену в полном разрешении. «Качество», «Баланс», «Производительность» и "
"«Макс. производительность» рисуют её в 67, 58, 50 и 33 % и масштабируют через DLSS, что "
"экономит время видеокарты; они заменяют масштаб 3D-отрисовки. Действует сразу.",
[UI_MENU_DLSS_DLAA] = "DLAA (родное)", [UI_MENU_DLSS_QUALITY] = "Качество", [UI_MENU_DLSS_BALANCED] = "Баланс",
[UI_MENU_DLSS] = "Режим апскейлера",
[UI_MENU_DLSS_DESC] = "«Родное» рисует 3D-сцену в полном разрешении. «Качество», «Баланс», «Производительность» и "
"«Макс. производительность» рисуют её в 67, 58, 50 и 33 % и масштабируют через апскейлер "
"(DLSS или FSR), что экономит время видеокарты; они заменяют масштаб 3D-отрисовки. Действует "
"сразу.",
[UI_MENU_DLSS_DLAA] = "Родное", [UI_MENU_DLSS_QUALITY] = "Качество", [UI_MENU_DLSS_BALANCED] = "Баланс",
[UI_MENU_DLSS_PERFORMANCE] = "Производительность", [UI_MENU_DLSS_ULTRA] = "Макс. производительность",
[UI_MENU_FXAA] = "Сглаживание игры (FXAA)",
[UI_MENU_FXAA_DESC] = "Собственное сглаживание FXAA. Слегка размывает мелкие детали; с DLAA оно не нужно. Выключено, пока работает AMD FSR.",
@@ -1151,11 +1156,11 @@ static const char *const text_ru[UI_TEXT_COUNT] = {
[UI_MENU_FIX_C0_DESC] = "Заполняет зарезервированный драйвером банк констант c0 (размеры хранилищ, размер запуска, размер точки, базовый экземпляр) вместо чтения нулей.",
[UI_MENU_FIX_ZERO] = "Обнулять новую память GPU",
[UI_MENU_FIX_ZERO_DESC] = "Новые пулы памяти GPU заполняются нулями, как память Switch.",
[UI_MENU_DLAA_EFFECTS_AFTER] = "Туман и частицы после DLAA",
[UI_MENU_DLAA_EFFECTS_AFTER_DESC] = "С DLAA туман, пыль и другие частицы рисуются поверх картинки, уже сглаженной"
" DLSS, как игра рисует их без DLSS: мелкие частицы в тумане (святилища) "
"больше не пропадают и не оставляют шлейфов. Выкл.: DLSS обрабатывает и эти "
"эффекты, как раньше. Только в режиме DLAA; режимы DLSS с повышением "
[UI_MENU_DLAA_EFFECTS_AFTER] = "Туман и частицы после апскейлера",
[UI_MENU_DLAA_EFFECTS_AFTER_DESC] = "В режиме «Родное» туман, пыль и другие частицы рисуются поверх картинки, уже "
"сглаженной апскейлером (DLSS или FSR), как игра рисует их без него: мелкие "
"частицы в тумане (святилища) больше не пропадают и не оставляют шлейфов. "
"Выкл.: апскейлер обрабатывает и эти эффекты, как раньше. Режимы с повышением "
"разрешения обрабатывают их всегда. Применяется сразу.",
[UI_MENU_DLSS_FIXED_EXPOSURE] = "Фиксированная экспозиция DLSS",
[UI_MENU_DLSS_FIXED_EXPOSURE_DESC] = "DLSS берёт яркость картинки игры как есть, а не оценивает экспозицию по "
@@ -1372,9 +1377,11 @@ static const char *const text_pt_br[UI_TEXT_COUNT] = {
[UI_MENU_MOVIE_ASPECT_DESC] = "Quando a resolução do jogo não é 16:9: manter o formato dos vídeos das cenas com "
"barras pretas ou esticá-los sobre a imagem toda. Vale a partir do próximo vídeo.",
[UI_MENU_MOVIE_ASPECT_KEEP] = "Barras pretas", [UI_MENU_MOVIE_ASPECT_STRETCH] = "Esticar",
[UI_MENU_SHARPNESS] = "Nitidez do FSR",
[UI_MENU_SHARPNESS_DESC] = "Quanto o AMD FSR realça a nitidez: da cena 3D com o upscaler AMD FSR e da imagem que o FSR 1 "
"amplia para a janela. 0 desliga.",
[UI_MENU_SHARPNESS] = "Nitidez do FSR 1",
[UI_MENU_SHARPNESS_DESC] = "Aumento de nitidez após o FSR 1 ampliar a imagem para a janela; 0 desliga.",
[UI_MENU_FSR_SHARPNESS] = "Nitidez do FSR",
[UI_MENU_FSR_SHARPNESS_DESC] = "Quanto o upscaler AMD FSR realça a nitidez da cena 3D que ele suaviza; 0 desliga. "
"Vale na hora.",
[UI_MENU_FPS_LIMIT] = "Limite de quadros",
[UI_MENU_FPS_LIMIT_DESC] = "O máximo de quadros por segundo que o jogo desenha. Acima de 60 é experimental e "
@@ -1601,12 +1608,12 @@ static const char *const text_pt_br[UI_TEXT_COUNT] = {
[UI_MENU_FIX_C0_DESC] = "Preenche o banco de constantes c0 reservado ao driver (tamanhos de armazenamento, tamanho do dispatch, tamanho do ponto, instância base) em vez de ler zeros.",
[UI_MENU_FIX_ZERO] = "Zerar memória nova da GPU",
[UI_MENU_FIX_ZERO_DESC] = "Novos pools de memória da GPU começam zerados, como a memória do Switch.",
[UI_MENU_DLAA_EFFECTS_AFTER] = "Névoa e partículas após o DLAA",
[UI_MENU_DLAA_EFFECTS_AFTER_DESC] = "Com DLAA, a névoa, a poeira e outras partículas são desenhadas sobre a "
"imagem já suavizada pelo DLSS, como o jogo as desenha sem DLSS: partículas "
"pequenas na névoa (santuários) não somem mais nem deixam rastros. Desligado:"
" o DLSS também processa esses efeitos, como antes. Só no modo DLAA; os modos"
" de DLSS que aumentam a resolução sempre os processam. Aplica-se na hora.",
[UI_MENU_DLAA_EFFECTS_AFTER] = "Névoa e partículas após o upscaler",
[UI_MENU_DLAA_EFFECTS_AFTER_DESC] = "No modo Nativo, a névoa, a poeira e outras partículas são desenhadas sobre a "
"imagem já suavizada pelo upscaler (DLSS ou FSR), como o jogo as desenha sem "
"ele: partículas pequenas na névoa (santuários) não somem mais nem deixam "
"rastros. Desligado: o upscaler também processa esses efeitos, como antes. Os "
"modos que aumentam a resolução sempre os processam. Aplica-se na hora.",
[UI_MENU_DLSS_FIXED_EXPOSURE] = "Exposição fixa do DLSS",
[UI_MENU_DLSS_FIXED_EXPOSURE_DESC] = "O DLSS usa o brilho da imagem do jogo como ele é, em vez de estimar a "
"exposição a cada quadro: em cenas escuras (as Profundezas), grandes áreas com "
@@ -1850,11 +1857,11 @@ static const char *const text_pt_br[UI_TEXT_COUNT] = {
[UI_MENU_DLAA_OFF] = "Desligado",
[UI_MENU_DLAA_BACKEND_DLSS] = "NVIDIA DLSS", [UI_MENU_DLAA_BACKEND_FSR] = "AMD FSR 4",
[UI_MENU_DLAA_BACKEND_FSR3] = "AMD FSR 3",
[UI_MENU_DLSS] = "Modo do DLSS",
[UI_MENU_DLSS_DESC] = "DLAA desenha a cena 3D na resolução cheia. Qualidade, Equilibrado, Desempenho e Ultra "
"Desempenho a desenham em 67, 58, 50 e 33 % e deixam o DLSS ampliá-la, o que poupa tempo da "
"GPU; eles substituem a escala 3D. Vale na hora.",
[UI_MENU_DLSS_DLAA] = "DLAA (nativo)",
[UI_MENU_DLSS] = "Modo do upscaler",
[UI_MENU_DLSS_DESC] = "Nativo desenha a cena 3D na resolução cheia. Qualidade, Equilibrado, Desempenho e Ultra "
"Desempenho a desenham em 67, 58, 50 e 33 % e deixam o upscaler (DLSS ou FSR) ampliá-la, o "
"que poupa tempo da GPU; eles substituem a escala 3D. Vale na hora.",
[UI_MENU_DLSS_DLAA] = "Nativo",
[UI_MENU_DLSS_QUALITY] = "Qualidade",
[UI_MENU_DLSS_BALANCED] = "Equilibrado",
[UI_MENU_DLSS_PERFORMANCE] = "Desempenho", [UI_MENU_DLSS_ULTRA] = "Ultra Desempenho",
@@ -2049,8 +2056,10 @@ static const char *const text_zh_hans[UI_TEXT_COUNT] = {
[UI_MENU_FOV] = "视野",
[UI_MENU_FOV_DESC] = "镜头能看到多大范围,以游戏自身视野的百分比表示。"
"支持游戏版本 1.1.0、1.2.1 和 1.4.3。",
[UI_MENU_SHARPNESS] = "FSR 锐度",
[UI_MENU_SHARPNESS_DESC] = "AMD FSR 的锐化强度:使用 AMD FSR 超分辨率时作用于 3D 场景,FSR 1 放大到窗口时作用于画面。0 为关闭。",
[UI_MENU_SHARPNESS] = "FSR 1 锐度",
[UI_MENU_SHARPNESS_DESC] = "FSR 1 放大到窗口后的锐化强度;0 为关闭。",
[UI_MENU_FSR_SHARPNESS] = "FSR 锐度",
[UI_MENU_FSR_SHARPNESS_DESC] = "AMD FSR 超分辨率对其平滑的 3D 场景的锐化强度;0 为关闭。立即生效。",
[UI_MENU_COLOR] = "色彩",
[UI_MENU_COLOR_PRESET] = "色彩配置",
[UI_MENU_COLOR_PRESET_DESC] = "同时设置下面四项。鲜艳:对比度和饱和度更高,暗部略微提亮(为 OLED 屏幕调校)。"
@@ -2374,10 +2383,9 @@ static const char *const text_zh_hans[UI_TEXT_COUNT] = {
"基础实例),而不是读取零值。",
[UI_MENU_FIX_ZERO] = "清零新的 GPU 内存",
[UI_MENU_FIX_ZERO_DESC] = "新的 GPU 内存池初始内容为零,与 Switch 内存一致。",
[UI_MENU_DLAA_EFFECTS_AFTER] = "DLAA 之后绘制雾和粒子",
[UI_MENU_DLAA_EFFECTS_AFTER_DESC] = "开启 DLAA 时,雾、灰尘和其他粒子绘制在 DLSS 已平滑的画面之上,与游戏不用 DLSS 时的"
"绘制方式相同:雾中的细小粒子(神庙中)不再消失,也不再留下拖影。关闭:DLSS 也处理这些效果,与以"
"前相同。仅用于 DLAA 模式;提升分辨率的 DLSS 模式始终处理它们。立即生效。",
[UI_MENU_DLAA_EFFECTS_AFTER] = "超分辨率之后绘制雾和粒子",
[UI_MENU_DLAA_EFFECTS_AFTER_DESC] = "在原生模式下,雾、灰尘和其他粒子绘制在超分辨率技术(DLSS 或 "
"FSR)已平滑的画面之上,与游戏不用它时的绘制方式相同:雾中的细小粒子(神庙中)不再消失,也不再留下拖影。关闭:超分辨率技术也处理这些效果,与以前相同。提升分辨率的模式始终处理它们。立即生效。",
[UI_MENU_DLSS_FIXED_EXPOSURE] = "固定 DLSS 曝光",
[UI_MENU_DLSS_FIXED_EXPOSURE_DESC] = "DLSS 直接使用游戏画面的亮度,而不是逐帧自行估算曝光:在暗场景(地底)中,"
"镜头移动时大片雾中区域不再忽暗忽亮一帧。关闭:DLSS 自行估算曝光,与以前相同。立即生效。",
@@ -2593,9 +2601,10 @@ static const char *const text_zh_hans[UI_TEXT_COUNT] = {
[UI_MENU_DLAA_OFF] = "关",
[UI_MENU_DLAA_BACKEND_DLSS] = "NVIDIA DLSS", [UI_MENU_DLAA_BACKEND_FSR] = "AMD FSR 4",
[UI_MENU_DLAA_BACKEND_FSR3] = "AMD FSR 3",
[UI_MENU_DLSS] = "DLSS 模式",
[UI_MENU_DLSS_DESC] = "DLAA 以全分辨率绘制 3D 场景。质量、平衡、性能和超级性能分别以 67%、58%、50% 和 33% 绘制,再由 DLSS 放大,以节省 GPU 时间;它们会取代 3D 渲染比例。立即生效。",
[UI_MENU_DLSS_DLAA] = "DLAA(原生)",
[UI_MENU_DLSS] = "超分辨率模式",
[UI_MENU_DLSS_DESC] = "原生以全分辨率绘制 3D 场景。质量、平衡、性能和超级性能分别以 67%、58%、50% 和 33% 绘制,再由超分辨率技术(DLSS 或 FSR)放大,以节省 GPU "
"时间;它们会取代 3D 渲染比例。立即生效。",
[UI_MENU_DLSS_DLAA] = "原生",
[UI_MENU_DLSS_QUALITY] = "质量",
[UI_MENU_DLSS_BALANCED] = "平衡",
[UI_MENU_DLSS_PERFORMANCE] = "性能",
+1 -1
View File
@@ -44,7 +44,7 @@ typedef enum {
UI_MENU_SHADOW_RES, UI_MENU_SHADOW_RES_DESC, UI_MENU_SHADOW_RES_GAME,
UI_MENU_ANISO, UI_MENU_ANISO_DESC, UI_MENU_ANISO_GAME,
UI_MENU_LOD_STEADY, UI_MENU_LOD_STEADY_DESC,
UI_MENU_SHARPNESS, UI_MENU_SHARPNESS_DESC,
UI_MENU_SHARPNESS, UI_MENU_SHARPNESS_DESC, UI_MENU_FSR_SHARPNESS, UI_MENU_FSR_SHARPNESS_DESC,
UI_MENU_COLOR, // group heading over the colour rows
UI_MENU_COLOR_PRESET, UI_MENU_COLOR_PRESET_DESC, UI_MENU_COLOR_DEFAULT, UI_MENU_COLOR_VIVID, UI_MENU_COLOR_CLARITY,
UI_MENU_COLOR_CUSTOM,
+4 -4
View File
@@ -1336,9 +1336,9 @@ static void evaluate(VkExec *ex, const VkExecTarget *dst) {
D.reset = 1;
}
if (D.last_color != t->image) D.reset = 1, D.why[2]++, D.last_color = t->image;
// FSR sharpens its own output (sharpness, the setting the FSR 1 present pass reads too): the game's sharpening
// is part of its FXAA pass, which FSR's frames go without (vk_dlaa_skip_draw).
int sharp = cfg_int("TOTK_SHARPNESS");
// FSR sharpens its own output (fsr_sharpness; the FSR 1 present pass has a sharpness of its own): the game's
// sharpening is part of its FXAA pass, which FSR's frames go without (vk_dlaa_skip_draw).
int sharp = cfg_int("TOTK_FSR_SHARPNESS");
sharp = sharp < 0 ? 0 : sharp > 100 ? 100 : sharp;
// The same bias mask DLSS would get, as FSR's reactive mask: how much to favour this frame's colour
VkFfxDispatch fd = {.color = {t->image, t->format, w, h}, .depth = {z->image, z->format, w, h},
@@ -1841,7 +1841,7 @@ int vk_dlaa_skip_draw(VkExec *ex, const GfxShader *fs) {
if (fsr_in_place) {
static int logged_fxaa, logged_copy;
if (known && ex->depth.image) {
if (!logged_fxaa) logged_fxaa = 1, rt_log("dlaa: FSR skips the game's FXAA (fragment shader %016llx) and sharpens its own picture (sharpness)", (unsigned long long)h);
if (!logged_fxaa) logged_fxaa = 1, rt_log("dlaa: FSR skips the game's FXAA (fragment shader %016llx) and sharpens its own picture (fsr_sharpness)", (unsigned long long)h);
return 1;
}
// the copy shader drawing the scene target onto itself: the frames below the first resolution tier