Streamline: rearm stuck DLSS Frame Generation before advancing SIMULATION_START #2938
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2938
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Maverick0351a on GitHub · 2026-11-29 18:54 UTC · original
Maverick0351a:fix/streamline-rearm-before-sim-start→main· +13 −6 · 1 files · 1 commits · openFixes #
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
@justrealyme on GitHub · 2026-11-29 19:24 UTC · original
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).
@ThePerfomance on GitHub · 2026-11-30 04:18 UTC · original · reviewed
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.