Frame generation stuck at one frame a present is switched off and on again #592
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!592
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-592"
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?
@Creaa on GitHub · 2026-11-28 01:30 UTC · original
Creaa:framegen-rearm-stuck→main· +129 −0 · 1 files · 1 commits · merged 2026-11-29 08:16 UTCDLSS Frame Generation can get stuck showing one frame a present: Streamline keeps it on with status
0x0, butnum_frames_actually_presentedstays at 1 until the next switch. In one 38-minute run on an RTX 4070 it stayed that way for about 10 minutes (from 1.97x to 1.15x shown frames per rendered frame for the rest of the session). Each time it started right after Streamline'sdlfgPresent.cpp:1553 Couldn't lock the mutex on sync present - will skip the present.What is in it (
crates/victory-gpu/src/streamline.rs)present_endscounts presents in a row that show one frame while 2 or more are asked (status read as before). AtVICTORY_FRAMEGEN_REARMpresents (90 unless set;0turns it off) it sets frame generation off, asresizing()does, and the next present with an upscaling asks it on again. Each time is logged as a warning with a running count.stuck_stepholds the counting; two unit tests cover the switch at the limit, the reset on a present with 2 frames, and the off / disabled cases.Tested (RTX 4070 12 GB, driver 617.14, i7-13700F, 32 GB, Windows 11 26300; release build of this branch on
64d4931; Series X 2560x1440, DLSS Quality,-FrameGen)a4d05e7(the new tests sit besidefailing_testsat the end of the file):cargo test -p victory-gpu --lib streamline: 16 passed. The game runs below were on64d4931.cargo test -p victory-gpu --lib frame_generation: 2 passed.cargo clippy -p victory-gpu --all-targets -- -D warnings: nothing in the new lines (the crate has other, older findings with Rust 1.98).0cef07e, same PC and settings): stuck from 20:23:55 to about 20:33, 1.15x after it.Not tested
AI use
d50bd32b30to2f4cafceab@Creaa on GitHub · 2026-11-28 09:22 UTC · original
Updated (
2f4cafc, squashed): the watch now stops after 3 switches in a row that do not bring generated frames back, and starts over at the next present that shows more than one frame.Why: in a run on 2026-11-28 the game window was not in front for a while. Frame generation showed one frame a present there as it should, and the watch switched it 45 times, every 90 presents, to no effect. Nothing visible came of it, but it should not keep doing that. Once the window was in front it showed 2.00x with no switch at all.
switching_that_does_not_help_stops_until_frames_come_back(fails without the limit: 10 switches instead of 3).cargo test -p victory-gpu --lib streamline: 17 passed.AI use: Claude Code (Claude Opus 5.5) wrote the change and this note.