Streamline: rearm stuck DLSS Frame Generation before advancing SIMULATION_START #2938
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2938"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Maverick0351a on 2026-11-29T18:54:47Z.
Fixes #
What it changes
streamline::present_ends(), runsdlssg_get_stateand the stuck-framegendlssg_set_options(DLSSG_OFF)rearm while Streamline is still onframe, before callingmarker(abi::SIMULATION_START, next)forframe + 1.present_ends()advancedSIMULATION_STARTtoframe + 1on line 2814 before callingset_options(DLSSG_OFF)on line 2866. Because Streamline was already onframe + 1, bothset_options(DLSSG_OFF)inpresent_ends()andset_options(DLSSG_ON)inpresent_begins()offrame + 1fell within the same Streamline frame tokenframe + 1, causing Streamline to reject theDLSSG_ONcall withcode=21 (eErrorInvalidParameter):[streamline][error]dlfgEntry.cpp:544[slDLSSGSetOptions] Repeated slDLSSGSetOptions() call for the frame 35558How it was tested
35557,present_ends()loggedframe=35557 presents=90 rearms=1 code=0 "DLSS Frame Generation showed one frame a present that long with more asked (status 0): switched off to be asked on again", and on frame35558,present_begins()failed withWARN streamline: dlfgEntry.cpp:544[slDLSSGSetOptions] Repeated slDLSSGSetOptions() call for the frame 35558andDLSS Frame Generation switched frame=35558 on=true times=4 code=21 result="error: invalid parameter".set_options(DLSSG_OFF)runs underframebeforeSIMULATION_START(frame + 1), sopresent_begins()onframe + 1is the soleslDLSSGSetOptionscall forframe + 1.cargo testpassed for the crates it touches: yes (cargo test -p victory-gpu --lib rearm_tests, 3 passed).Checked for overlap
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by justrealyme on 2026-11-29T19:24:29Z.
Tested on RTX 5070 Ti (driver 621.40), Core Ultra 7 265K, Windows 11. Release build of
829188ewith this PR applied, Series X, 1440p, DLSS Quality, DLSS frame generation 2x,VICTORY_ALIAS_TARGETS=0.Repeated slDLSSGSetOptions() call for the frame, and there were 31 seconds with one frame shown per present.The run with this PR also had
VICTORY_ALIAS_TARGETS=0set (from #1917), so the drop in stalls isn't measured against this PR alone. What the log shows for this PR is that the repeated-call error is gone. The build also compiled cleanly on top of829188e.Done with AI assistance (Claude Code).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ThePerfomance on 2026-11-30T04:18:21Z.
Review: COMMENTED
Thanks for working on this, @Maverick0351a. I tested
af2b7e9on an RTX 5070 with driver 621.24. The synthetic DLSS-G probe passed at the default rearm threshold. WithVICTORY_FRAMEGEN_REARM=1, frames 45 and 46 received bothDLSSG_ONandDLSSG_OFF. Streamline loggedRepeated slDLSSGSetOptions()even though both calls returned0and the probe passed.Would it make sense to track the last frame that called
slDLSSGSetOptionsand defer the rearm until a frame where the options have not already been set? If generated frames return meanwhile, the pending rearm can be dropped. Counting the attempt only after Streamline acceptsDLSSG_OFFwould also keep a rejected call from using up a retry. A small regression test with a rearm threshold of1could check that no frame gets both calls.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.