fix(menu): the Upscaler row says when the upscaler chosen cannot run here #3119

Merged
HumanBean merged 1 commit from HumanBean/Longshot:fix/upscaler-row-unavailable into main 2026-12-03 23:28:59 +00:00
Owner

Summary

With Auto (this PC), the Upscaler row could read NVIDIA DLSS on a PC where DLSS doesn't run: Auto picks by the graphics card, and NVIDIA's runtime may still refuse it. A player on an RTX 3060 Ti saw DLSS selected while the picture used the game's own anti-aliasing.

The row now reads NVIDIA DLSS (not available) when the upscaler chosen can't run, in every menu language. It stays selected, since the saved choice staying visible is deliberate, and the help text under it still says why. What Auto picks is unchanged.

Read first: upscalerLabels in game/mods/menu/src/view.ts, UpscalerRow in rows.tsx.

Testing

Tested: Linux, game-free only. Not run in the game.

  • The menu's own tests on the fake game (cargo test -p modtool the_typescript_system_mods_pass_their_tests): pass, with the new cases. Run before the last rebase onto main.
  • test_menu_i18n.py, test_i18n_complete.py, test_upscaler_rows.py: pass on this head.
  • The new cases test a function this adds, so they can't run without the fix; test and fix are one commit.
  • cargo fmt --check fails on main itself (build-core, api), in files this doesn't touch.

Still to test:

  • Any PC where DLSS doesn't run, with DLSS chosen (RX_VK_DLSS=0): expect "NVIDIA DLSS (not available)" on the row (by hand)
  • An NVIDIA RTX PC where DLSS runs: expect "NVIDIA DLSS" as before, at the start too (by hand)

Measurements

Nothing to measure: a row's text.

Risks

  • The label depends on what the renderer says runs, so it can read as available for a moment at startup, until NVIDIA's check answers.
  • The translations were written by an AI and not checked by a speaker.
  • A revert is enough.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says. (No: opened with --force on request)
  • mise run test passes (any failure that also fails on main is named). (Only the checks above ran)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here. (The test needs the function the fix adds)
  • Screenshots of the same spot on main and here, for a change that shows on screen.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary With **Auto (this PC)**, the Upscaler row could read **NVIDIA DLSS** on a PC where DLSS doesn't run: Auto picks by the graphics card, and NVIDIA's runtime may still refuse it. A player on an RTX 3060 Ti saw DLSS selected while the picture used the game's own anti-aliasing. The row now reads **NVIDIA DLSS (not available)** when the upscaler chosen can't run, in every menu language. It stays selected, since the saved choice staying visible is deliberate, and the help text under it still says why. What Auto picks is unchanged. Read first: `upscalerLabels` in `game/mods/menu/src/view.ts`, `UpscalerRow` in `rows.tsx`. ## Testing **Tested:** Linux, game-free only. **Not run in the game.** - The menu's own tests on the fake game (`cargo test -p modtool the_typescript_system_mods_pass_their_tests`): pass, with the new cases. Run before the last rebase onto `main`. - `test_menu_i18n.py`, `test_i18n_complete.py`, `test_upscaler_rows.py`: pass on this head. - The new cases test a function this adds, so they can't run without the fix; test and fix are one commit. - `cargo fmt --check` fails on `main` itself (`build-core`, `api`), in files this doesn't touch. **Still to test:** - Any PC where DLSS doesn't run, with DLSS chosen (`RX_VK_DLSS=0`): expect "NVIDIA DLSS (not available)" on the row (by hand) - An NVIDIA RTX PC where DLSS runs: expect "NVIDIA DLSS" as before, at the start too (by hand) ## Measurements Nothing to measure: a row's text. ## Risks - The label depends on what the renderer says runs, so it can read as available for a moment at startup, until NVIDIA's check answers. - The translations were written by an AI and not checked by a speaker. - A revert is enough. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [ ] Tested on my own PC, in the game for a change the game runs, as Testing says. (No: opened with `--force` on request) - [ ] `mise run test` passes (any failure that also fails on `main` is named). (Only the checks above ran) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [ ] A fix: a game-free test that fails on `main` and passes here. (The test needs the function the fix adds) - [ ] Screenshots of the same spot on `main` and here, for a change that shows on screen. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(menu): the Upscaler row says when the upscaler chosen cannot run here
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
PR description / Title and description (pull_request_target) Failing after 7s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 18s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m29s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 11m11s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 14m17s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m30s
CI / Website build and checks (pull_request) Failing after 1m13s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 48m47s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
7e23bfc3ce
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
HumanBean changed title from WIP: fix(menu): the Upscaler row says when the upscaler chosen cannot run here to fix(menu): the Upscaler row says when the upscaler chosen cannot run here 2026-12-03 23:28:53 +00:00
HumanBean deleted branch fix/upscaler-row-unavailable 2026-12-03 23:29:00 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!3119
No description provided.