Menu and start-up edge cases: a chosen GPU that is gone, held Esc, the boot screen, and upscaler-dependent rows.

- A GPU index or name that is not usable, or no longer there, falls back to the best usable GPU with a log line instead
  of stopping the game before the menu can change it (vk_device.c pick_device).
- A held Esc no longer opens the menu and closes it again on its first key repeat (menu_win.cpp, menu_sdl.cpp).
- The menu does not open on the boot screen, where it was not drawn while its keys queued up and changed settings once
  the game ran.
- The DLSS render scale follows the upscaler that runs: a DLSS or FSR 3.1 mode picked in the menu, which applies after
  a restart, or DLSS where NGX is not available, no longer shrinks the scene with nothing to scale it back up.
- Upscaling without DLSS or FSR 3.1 also turns frame generation off, which needs their motion vectors.
- The HDR peak brightness slider reaches the setting's 10000 nits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-07 18:44:47 -05:00
parent 9dcfc5723b
commit 1f016a774e
5 changed files with 31 additions and 9 deletions

View File

@@ -53,6 +53,8 @@ extern "C" void menu_sdl_event(const SDL_Event *e) {
if (!e->key.repeat) menu_perf_cycle();
return;
}
// a held Esc's repeats: the press that opened the menu is not queued, so its first repeat would close it
if (e->key.scancode == SDL_SCANCODE_ESCAPE && e->key.repeat) return;
[[fallthrough]];
case SDL_EVENT_KEY_UP:
if (!menu_is_open()) return;