fix(dlss): the DLSS 5 preset's Custom gives back your last values, and the preset and model rows move to the DLSS 5 page #2582

Merged
HumanBean merged 2 commits from pmwork-personal/Longshot:fix/dlss5-preset-custom into main 2026-11-27 22:20:11 +00:00
Member

Summary

On main the DLSS 5 preset row loses a player's own DLSS 5 values: choosing Default writes the Default preset over
all 11 rows of the DLSS 5 settings page, and Custom can never be chosen again (its step always gives Default). To see
it on main: DLSS 5 On, open DLSS 5 settings, raise Detail strength, go back, set DLSS 5 preset to Default: Detail
strength is 1.64 again, and nothing brings the player's value back.

With this, the rows as last set by hand are the player's Custom set:

  • Default puts the rows back and keeps the set; Custom gives it back, also after a restart. The set is one new
    line in longshot_options.ini, dlss5_custom=resolution:65,detail:166,..., each row by its name: a row added later
    takes its Default value, and each value is held to its row's range. It is not a row, so tests/test_menu_ini_keys.py's
    FROZEN list stays as it is; vk_menu.cpp's save() and menu_init() hand the line to menu/dlss5.cpp
    (dlss5_custom_text, dlss5_custom_read).
  • A row changed while on Default makes a new set. A change that brings every row back to Default keeps the set there
    was. With no set yet, the preset row is locked on Default, and its help says how to make one.
  • An options file from before this keeps a player's own values: rows not at Default become the set.
  • The DLSS 5 preset row moves to the top of the DLSS 5 settings page and the DLSS 5 model row to its bottom;
    the Graphics tab keeps DLSS 5 and DLSS 5 settings. Their keys stay (dlss5_preset, dlss5_model).

To read first: gpu/vk/menu/dlss5.cpp (kPresetRows, keep_custom, dlss5_custom_text, dlss5_custom_read, the
rows), then tests/test_dlss5_menu.py.

Testing

Tested: Windows 11, RTX 5090, driver 621.24, in the game: the stable settings (DLSS, DLAA at 5120x2160, frame
generation) with DLSS 5 On, NVIDIA's nvngx_dlssnr.dll and the FP16 file in %LOCALAPPDATA%\Longshot\ngx, the
repository's kokiri-start save.

  • main's DLSS 5 menu (a build whose gpu/vk/menu/dlss5.cpp and dlss5.h are main's): DLSS 5, DLSS 5 model, DLSS 5
    preset and DLSS 5 settings on the Graphics tab.
  • This branch: the Graphics tab has DLSS 5 and DLSS 5 settings; the page has DLSS 5 preset at its top (locked on Default:
    Right leaves it there) and DLSS 5 model at its bottom. Detail strength up one step (1.66): the preset row says Custom.
    Default: 1.64. Custom: 1.66. Default again, then quit: the options file holds the rows at Default and
    dlss5_custom=...,detail:166,.... Started again with that file: Default and 1.64; Custom (over the control bridge):
    1.66. No validation error, device loss or crash in the logs. Screenshots of both: the comment after the tested-in-game one.
  • The branch ran as a dev pack built by #2581's longshot-builder (since #2557, main's refuses itself on Windows
    developer builds); this PR does not depend on #2581.

Game-free: tests/test_dlss5_menu.py checks every case above and the line out and in again (it fails on main, which
has no Custom set to build it against); tests/test_menu_keys.py checks that save() writes the line once, over the
file's old one, writes none with no set, and that menu_init() hands the line back. tests/run_all.py --changed: 108
passed, 0 failed, 5 skipped (Linux only). The whole suite (tests/run_all.py, Windows): 792 passed, 15 failed, 51
skipped; the 15 fail the same way on main 68ab0bc7 on this PC and none reads a changed file (test_auto_handheld,
test_builder_channel, test_coverage_run, test_dev_ab, test_dev_build, test_dev_migrate, test_float_add_subgroup,
test_game_menu_mouse_buttons, test_input_movie, test_job_queue, test_oot_menu_mouse, test_pads_after_menu,
test_parity_gates, test_run_all_mingw, and the timing-sensitive test_sampler_admission).
scripts/check_guide_screenshots.py --review-sources passes (review: source-review-dlss5-preset.md).

Still to test: None.

Measurements

Nothing to measure: the menu and one options-file line change, nothing a frame runs.

Risks

The DLSS 5 preset and DLSS 5 model rows are on the DLSS 5 settings page now; their keys stay, so saved values and
control bridge scripts keep working. A player's longshot_options.ini gains dlss5_custom= once they change a DLSS 5
row; an older build ignores the line and keeps it. Where DLSS 5 cannot run (no DLSS 5 file, not NVIDIA), nothing on
screen changes and no line is written. 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.
  • mise run test passes (any failure that also fails on main is named).
  • 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.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Screenshots of the same spot on main and here, for a change that shows on screen.
  • Docs updated.
  • 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.

Co-Authored-By: Claude Opus 5.5 [email protected]

🤖 Generated with Claude Code

## Summary On `main` the **DLSS 5 preset** row loses a player's own DLSS 5 values: choosing Default writes the Default preset over all 11 rows of the DLSS 5 settings page, and Custom can never be chosen again (its step always gives Default). To see it on `main`: DLSS 5 On, open DLSS 5 settings, raise Detail strength, go back, set DLSS 5 preset to Default: Detail strength is 1.64 again, and nothing brings the player's value back. With this, the rows as last set by hand are the player's **Custom set**: - **Default** puts the rows back and keeps the set; **Custom** gives it back, also after a restart. The set is one new line in `longshot_options.ini`, `dlss5_custom=resolution:65,detail:166,...`, each row by its name: a row added later takes its Default value, and each value is held to its row's range. It is not a row, so `tests/test_menu_ini_keys.py`'s FROZEN list stays as it is; `vk_menu.cpp`'s `save()` and `menu_init()` hand the line to `menu/dlss5.cpp` (`dlss5_custom_text`, `dlss5_custom_read`). - A row changed while on Default makes a new set. A change that brings every row back to Default keeps the set there was. With no set yet, the preset row is locked on Default, and its help says how to make one. - An options file from before this keeps a player's own values: rows not at Default become the set. - The **DLSS 5 preset** row moves to the top of the DLSS 5 settings page and the **DLSS 5 model** row to its bottom; the Graphics tab keeps DLSS 5 and DLSS 5 settings. Their keys stay (`dlss5_preset`, `dlss5_model`). To read first: `gpu/vk/menu/dlss5.cpp` (`kPresetRows`, `keep_custom`, `dlss5_custom_text`, `dlss5_custom_read`, the rows), then `tests/test_dlss5_menu.py`. ## Testing **Tested:** Windows 11, RTX 5090, driver 621.24, in the game: the stable settings (DLSS, DLAA at 5120x2160, frame generation) with DLSS 5 On, NVIDIA's `nvngx_dlssnr.dll` and the FP16 file in `%LOCALAPPDATA%\Longshot\ngx`, the repository's `kokiri-start` save. - `main`'s DLSS 5 menu (a build whose `gpu/vk/menu/dlss5.cpp` and `dlss5.h` are `main`'s): DLSS 5, DLSS 5 model, DLSS 5 preset and DLSS 5 settings on the Graphics tab. - This branch: the Graphics tab has DLSS 5 and DLSS 5 settings; the page has DLSS 5 preset at its top (locked on Default: Right leaves it there) and DLSS 5 model at its bottom. Detail strength up one step (1.66): the preset row says Custom. Default: 1.64. Custom: 1.66. Default again, then quit: the options file holds the rows at Default and `dlss5_custom=...,detail:166,...`. Started again with that file: Default and 1.64; Custom (over the control bridge): 1.66. No validation error, device loss or crash in the logs. Screenshots of both: the comment after the tested-in-game one. - The branch ran as a dev pack built by #2581's `longshot-builder` (since #2557, `main`'s refuses itself on Windows developer builds); this PR does not depend on #2581. Game-free: `tests/test_dlss5_menu.py` checks every case above and the line out and in again (it fails on `main`, which has no Custom set to build it against); `tests/test_menu_keys.py` checks that `save()` writes the line once, over the file's old one, writes none with no set, and that `menu_init()` hands the line back. `tests/run_all.py --changed`: 108 passed, 0 failed, 5 skipped (Linux only). The whole suite (`tests/run_all.py`, Windows): 792 passed, 15 failed, 51 skipped; the 15 fail the same way on `main` 68ab0bc7 on this PC and none reads a changed file (test_auto_handheld, test_builder_channel, test_coverage_run, test_dev_ab, test_dev_build, test_dev_migrate, test_float_add_subgroup, test_game_menu_mouse_buttons, test_input_movie, test_job_queue, test_oot_menu_mouse, test_pads_after_menu, test_parity_gates, test_run_all_mingw, and the timing-sensitive test_sampler_admission). `scripts/check_guide_screenshots.py --review-sources` passes (review: `source-review-dlss5-preset.md`). **Still to test:** None. ## Measurements Nothing to measure: the menu and one options-file line change, nothing a frame runs. ## Risks The DLSS 5 preset and DLSS 5 model rows are on the DLSS 5 settings page now; their keys stay, so saved values and control bridge scripts keep working. A player's `longshot_options.ini` gains `dlss5_custom=` once they change a DLSS 5 row; an older build ignores the line and keeps it. Where DLSS 5 cannot run (no DLSS 5 file, not NVIDIA), nothing on screen changes and no line is written. A revert is enough. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [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 - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Screenshots of the same spot on `main` and here, for a change that shows on screen. - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [x] Everything in Still to test has run, its results in Tested. - [x] 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. Co-Authored-By: Claude Opus 5.5 <[email protected]> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Choosing Default on the DLSS 5 preset row wrote the Default values over all 11 DLSS 5 rows, and nothing kept the
player's own: Custom could not be chosen again. Now the rows as last set by hand are the player's Custom set:

- Default puts the rows back and keeps the set; Custom gives it back, also after a restart (one options line,
  dlss5_custom=, each row by its name; vk_menu.cpp save and menu_init hand it to menu/dlss5.cpp).
- A row changed while on Default makes a new set; a change that brings the rows back to Default keeps the set there
  was. With no set yet, the preset row waits on Default and says how to make one.
- An options file from before this keeps a player's own values: rows not at Default become the set.

The DLSS 5 preset row moves to the top of the DLSS 5 settings page, and the DLSS 5 model row to its bottom; the Graphics
tab keeps DLSS 5 and the row that opens the page. Keys stay (dlss5_preset, dlss5_model).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs(guide): review the Graphics image for the DLSS 5 preset change
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / What the change needs (pull_request) Successful in 7s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 1s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 1s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
PR description / Title and description (pull_request_target) Successful in 12s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 1s
CI / Website build and checks (pull_request) Failing after 1s
bc8748d2c9
settings-graphics.png records gpu/vk/menu/dlss5.cpp, dlss5.h and vk_menu.cpp as UI sources. Every DLSS 5 row stays
hidden in the fixture (no DLSS 5 file), and the vk_menu.cpp change is in the options file only: the image is kept, its
review record is source-review-dlss5-preset.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Tested in game: Windows 11, RTX 5090, driver 621.24, DLSS (DLAA 5120x2160) with frame generation, DLSS 5 On with NVIDIA's file and the FP16 file: main's DLSS 5 menu, then this branch's. The Graphics tab has DLSS 5 and DLSS 5 settings; the page has the preset at its top (locked on Default until a row changes) and DLSS 5 model at its bottom. Detail strength 1.66 made the preset Custom; Default gave 1.64, Custom 1.66 again; after a restart with the saved options file, Default and 1.64, then Custom gave 1.66. No validation error, device loss or crash in the logs.

Tested in game: Windows 11, RTX 5090, driver 621.24, DLSS (DLAA 5120x2160) with frame generation, DLSS 5 On with NVIDIA's file and the FP16 file: main's DLSS 5 menu, then this branch's. The Graphics tab has DLSS 5 and DLSS 5 settings; the page has the preset at its top (locked on Default until a row changes) and DLSS 5 model at its bottom. Detail strength 1.66 made the preset Custom; Default gave 1.64, Custom 1.66 again; after a restart with the saved options file, Default and 1.64, then Custom gave 1.66. No validation error, device loss or crash in the logs.
Author
Member

Screenshots: Windows 11, RTX 5090, 5120x2160, DLSS 5 On with NVIDIA's file and the FP16 file (the menu, cropped).

main (a build with main's gpu/vk/menu/dlss5.cpp): the four DLSS 5 rows on the Graphics tab, and the DLSS 5
settings page.

main: Graphics tab
main: DLSS 5 settings page

This branch: the Graphics tab keeps DLSS 5 and DLSS 5 settings; the page has DLSS 5 preset at its top (locked on
Default: no Custom set yet) and DLSS 5 model at its bottom.

branch: Graphics tab
branch: DLSS 5 settings page, no Custom set yet

Detail strength up one step (1.66): the preset row says Custom. Then Default (1.64), then Custom (1.66 again).

branch: Custom after Detail strength 1.66
branch: Default chosen, 1.64
branch: Custom chosen again, 1.66

Screenshots: Windows 11, RTX 5090, 5120x2160, DLSS 5 On with NVIDIA's file and the FP16 file (the menu, cropped). **main** (a build with `main`'s `gpu/vk/menu/dlss5.cpp`): the four DLSS 5 rows on the Graphics tab, and the DLSS 5 settings page. ![main: Graphics tab](https://git.magicbean.dev/attachments/503642e9-cb92-45cc-9969-d8f1a0f6701b) ![main: DLSS 5 settings page](https://git.magicbean.dev/attachments/a14976f7-9c22-492e-abc7-ec2b1a646142) **This branch:** the Graphics tab keeps DLSS 5 and DLSS 5 settings; the page has DLSS 5 preset at its top (locked on Default: no Custom set yet) and DLSS 5 model at its bottom. ![branch: Graphics tab](https://git.magicbean.dev/attachments/8a50a42c-e9f3-40d5-9183-fa4828b8482b) ![branch: DLSS 5 settings page, no Custom set yet](https://git.magicbean.dev/attachments/b3913727-7793-4a99-ae6a-b44295d934aa) Detail strength up one step (1.66): the preset row says Custom. Then Default (1.64), then Custom (1.66 again). ![branch: Custom after Detail strength 1.66](https://git.magicbean.dev/attachments/84a7ed7d-f49f-47c7-83f2-95883af2dbff) ![branch: Default chosen, 1.64](https://git.magicbean.dev/attachments/7e9735d6-2da1-4c1e-84c7-f7cbdc33c7f4) ![branch: Custom chosen again, 1.66](https://git.magicbean.dev/attachments/5f4f2d97-8b9f-44a4-8838-f15e609ed583)
Member

Possibly related, for context:

  • PR #2503 feat(dlss): DLSS 5 neural rendering when NVIDIA's nvngx_dlssnr.dll is in place — Merged DLSS 5 menu and preset implementation this extends
Possibly related, for context: - PR #2503 feat(dlss): DLSS 5 neural rendering when NVIDIA's nvngx_dlssnr.dll is in place — Merged DLSS 5 menu and preset implementation this extends
Member
@review
BeanBot left a comment

Recommendation: Request changes. The reported in-game run shows that Custom values return after choosing Default and after a restart. The head’s CI checks are failing and need to pass before merge. (It stands on L1: The check CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) fails on this head and passes on the base branch: Failing after 1s.)

The change preserves a player’s DLSS 5 tuning as a Custom set and moves the preset and model controls onto the DLSS 5 settings page. The implementation adds a small amount of menu and options-file state.

Blocking (6): must change before merging.

  1. L1: The check CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) fails on this head and passes on the base branch: Failing after 1s.
  2. L2: The check CI / Game-free checks (run_all.py, part 1/2) (pull_request) fails on this head and passes on the base branch: Failing after 1s.
  3. L3: The check CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) fails on this head and passes on the base branch: Failing after 1s.
  4. L4: The check CI / Host C for Windows (llvm-mingw, compile only) (pull_request) fails on this head and passes on the base branch: Failing after 1s.
  5. L5: The check CI / Game-free checks (run_all.py, part 2/2) (pull_request) fails on this head and passes on the base branch: Failing after 1s.
  6. L6: The check CI / Website build and checks (pull_request) fails on this head and passes on the base branch: Failing after 1s.

@fix can do L1, L2, L3, L4, L5 and L6.

More: does it help, other systems, switches, what was read

Does it help: Yes. The author reports Detail strength returning from 1.64 to the saved Custom value of 1.66, including after a restart, on Windows 11 with an RTX 5090. This is not a performance change.

Other systems: The change affects menu navigation, control-bridge access and options-file persistence. The reported run covers Windows and the game-free checks exercise the menu logic; no separate Linux game run was reported.

Switches: None added, changed or removed.

Reviewed: bc8748d2c9 against fd68f82c1d: Read the repository rules, pull request template, standards, commit messages, DLSS 5 module and its menu test, and inspected the diff and surrounding save, load, menu and control-bridge paths. Skimmed the remaining changed tests, documentation, website code and screenshot provenance; did not read every changed code file in full.; nothing run (a code review).

Checked and fine:

  • Both commits record AI assistance.
  • The existing DLSS 5 row keys remain unchanged.
  • The Custom line is parsed with bounded values and written once by the options save path.
  • The reported in-game run covers the menu move and Custom/Default round trip.

Testing: No code or tests were run during review. The author reports 108 changed checks passing on Linux and an in-game Windows run; six head-only CI checks are failing.

Overlaps and merge order: Unknown; network access was unavailable.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The reported in-game run shows that Custom values return after choosing Default and after a restart. The head’s CI checks are failing and need to pass before merge. (It stands on L1: The check `CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request)` fails on this head and passes on the base branch: Failing after 1s.) The change preserves a player’s DLSS 5 tuning as a Custom set and moves the preset and model controls onto the DLSS 5 settings page. The implementation adds a small amount of menu and options-file state. **Blocking (6)**: must change before merging. 1. **L1**: The check `CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request)` fails on this head and passes on the base branch: Failing after 1s. 2. **L2**: The check `CI / Game-free checks (run_all.py, part 1/2) (pull_request)` fails on this head and passes on the base branch: Failing after 1s. 3. **L3**: The check `CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request)` fails on this head and passes on the base branch: Failing after 1s. 4. **L4**: The check `CI / Host C for Windows (llvm-mingw, compile only) (pull_request)` fails on this head and passes on the base branch: Failing after 1s. 5. **L5**: The check `CI / Game-free checks (run_all.py, part 2/2) (pull_request)` fails on this head and passes on the base branch: Failing after 1s. 6. **L6**: The check `CI / Website build and checks (pull_request)` fails on this head and passes on the base branch: Failing after 1s. `@fix` can do L1, L2, L3, L4, L5 and L6. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. The author reports Detail strength returning from 1.64 to the saved Custom value of 1.66, including after a restart, on Windows 11 with an RTX 5090. This is not a performance change. **Other systems:** The change affects menu navigation, control-bridge access and options-file persistence. The reported run covers Windows and the game-free checks exercise the menu logic; no separate Linux game run was reported. **Switches:** None added, changed or removed. **Reviewed:** bc8748d2c90c against fd68f82c1d78: Read the repository rules, pull request template, standards, commit messages, DLSS 5 module and its menu test, and inspected the diff and surrounding save, load, menu and control-bridge paths. Skimmed the remaining changed tests, documentation, website code and screenshot provenance; did not read every changed code file in full.; nothing run (a code review). **Checked and fine:** - Both commits record AI assistance. - The existing DLSS 5 row keys remain unchanged. - The Custom line is parsed with bounded values and written once by the options save path. - The reported in-game run covers the menu move and Custom/Default round trip. **Testing:** No code or tests were run during review. The author reports 108 changed checks passing on Linux and an in-game Windows run; six head-only CI checks are failing. **Overlaps and merge order:** Unknown; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch fix/dlss5-preset-custom 2026-11-27 22:20:11 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
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!2582
No description provided.