Reflex low latency only while frame generation is on (+7% with it ready but off) #250
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!250
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-250"
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?
@MrSquirrel489 on GitHub · 2026-11-27 20:08 UTC · original
MrSquirrel489:perf/reflex-only-with-framegen→main· +40 −18 · 2 files · 1 commits · openWhat
Reflex low latency was switched on at start whenever DLSS Frame Generation was planned, also when the launcher only makes it ready, but off for the F1 menu (the default since the menu switches it live). Now it is on only while frame generation is asked for:
VICTORY_FRAMEGEN_X≠ 0);VICTORY_FRAMEGEN_CYCLE). No call when only the amount changes (2x → 4x).One file of code (
streamline.rs, +29/−12), the Reflex passage ofdocs/dlss.mdupdated.Why
A stack sampler on the submitting thread (
victory-submit, release build, 60 s in the first boat mission) showed ~16% of its time asleep in the present:present_planes → DXGI Present → sl.interposer → NVAPI → driver Sleep.That is Reflex's pacing. Here it holds back the thread that feeds the card, so the card waits too (the frame line's "the card idle behind us" halves without it).
Measured
RTX 4080, i7-13700K, 4K output with DLSS Performance, Series X profile, launcher defaults (frame generation ready, off). Same scripted run each time (start screen, cutscene skipped, first boat mission), frame lines averaged over 165–245 s after the window appears, the two builds alternated, each run's build checked by its log line. On
0cef07e:main(Four runs each on the tree before the last upstream commits: 24.7 → 27.2 fps.)
With frame generation on from the start nothing changes: Reflex is on from the start, as before.
Frame generation still works
VICTORY_FRAMEGEN_CYCLE=300(2x, 4x, off, 6x in turn) in the same run: Reflex switches on and off with it (Streamline: Reflex low latency … on=true/false code=0), and in the world every 5-second line shows frames shown = 2 × presents with it on (2x is this card's most), status0x0throughout, no "Reflex not seen", no failed present.Not measured
-NoFrameGenReady) the changed code does not run: Reflex was never set there, before or now.Checks
cargo test --workspace: all pass except the two indirect budget tests, which fail the same way onmain(#67 fixes them).cargo clippy -p victory-gpu --all-targets -- -D warnings: 39 findings onmain, the same 39 with this PR; none in the changed lines.🤖 Generated with Claude Code
@hussainmussa on GitHub · 2026-11-28 01:06 UTC · original
I built this branch and its base on a smaller card, where this matters much more.
Setup: RTX 4070 12 GB (driver 621.24), Core Ultra 7 265KF, 64 GB RAM, Windows 11. Release builds. Series X profile, 1440p, DLSS Quality, launcher defaults (frame generation ready, off). Opening area. Numbers are the 5-second frame lines after loading.
0cef07ea920cbfOn the base, 16 of 17 samples sat at 71.4 ms per frame, with "0 presents with it on". With this PR none do, and the longest present call was 1.6 ms.
Limits: one run each (17 and 31 samples), played by hand, so the routes were not identical. I did not test frame generation switched on, or input latency.
Written with help from Claude; everything above was built and run on my machine.
@hussainmussa on GitHub · 2026-11-28 01:16 UTC · original
Follow-up: the same build (
a920cbf) with frame generation on from the start (-FrameGen, DLSS 2x), same card and settings as above.Reflex low latency (needed by frame generation, only while it is on) on=true code=0 result="ok".0x0, and frames shown = 2 × presents once it settled (for example "19 presents with it on, 0 off, 38 frames shown by it").Limits: one run, played by hand. I did not switch frame generation off and on in the F1 menu during the run, so the live switching is not covered. I have no run of the base with frame generation on to compare against.
Written with help from Claude; everything above was built and run on my machine.
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.