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
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2582
Loading…
Reference in a new issue
No description provided.
Delete branch "pmwork-personal/Longshot:fix/dlss5-preset-custom"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
On
mainthe DLSS 5 preset row loses a player's own DLSS 5 values: choosing Default writes the Default preset overall 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: Detailstrength 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:
line in
longshot_options.ini,dlss5_custom=resolution:65,detail:166,..., each row by its name: a row added latertakes 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'sFROZEN list stays as it is;
vk_menu.cpp'ssave()andmenu_init()hand the line tomenu/dlss5.cpp(
dlss5_custom_text,dlss5_custom_read).was. With no set yet, the preset row is locked on Default, and its help says how to make one.
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, therows), 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.dlland the FP16 file in%LOCALAPPDATA%\Longshot\ngx, therepository's
kokiri-startsave.main's DLSS 5 menu (a build whosegpu/vk/menu/dlss5.cppanddlss5.haremain's): DLSS 5, DLSS 5 model, DLSS 5preset and DLSS 5 settings on the Graphics tab.
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.
longshot-builder(since #2557,main's refuses itself on Windowsdeveloper builds); this PR does not depend on #2581.
Game-free:
tests/test_dlss5_menu.pychecks every case above and the line out and in again (it fails onmain, whichhas no Custom set to build it against);
tests/test_menu_keys.pychecks thatsave()writes the line once, over thefile's old one, writes none with no set, and that
menu_init()hands the line back.tests/run_all.py --changed: 108passed, 0 failed, 5 skipped (Linux only). The whole suite (
tests/run_all.py, Windows): 792 passed, 15 failed, 51skipped; the 15 fail the same way on
main68ab0bc7on 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-sourcespasses (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.inigainsdlss5_custom=once they change a DLSS 5row; 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
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here.tests/that reads changed source is updated, not weakened.mainand here, for a change that shows on screen.Assisted-by:/Co-Authored-By:trailers.Ready to merge
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
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.
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'sgpu/vk/menu/dlss5.cpp): the four DLSS 5 rows on the Graphics tab, and the DLSS 5settings 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.
Detail strength up one step (1.66): the preset row says Custom. Then Default (1.64), then Custom (1.66 again).
Possibly related, for context:
@review
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.
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request)fails on this head and passes on the base branch: Failing after 1s.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.CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request)fails on this head and passes on the base branch: Failing after 1s.CI / Host C for Windows (llvm-mingw, compile only) (pull_request)fails on this head and passes on the base branch: Failing after 1s.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.CI / Website build and checks (pull_request)fails on this head and passes on the base branch: Failing after 1s.@fixcan 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:
bc8748d2c9againstfd68f82c1d: 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:
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.