Frame generation: Reflex low latency can be left off (VICTORY_FG_REFLEX_OFF=1): 4x on an RTX 5080 from 27.7 to 37.6 rendered fps #4880
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4880"
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 mstrmoos on 2026-12-01T12:38:32Z.
What it changes
With DLSS frame generation on, the layer turns Reflex low latency on with it (
set_reflexincrates/victory-gpu/src/streamline.rs). In this layer that holds the title back by about 11 ms a frame, and the card starves. The rendered rate drops below what the same scene manages with frame generation off, while the card has room to spare.This adds
VICTORY_FG_REFLEX_OFF=1, off by default, which leaves Reflex's low latency off while frame generation runs. It's the line that picks Reflex's mode, plus a fallback where frame generation stops without Reflex (below) and a README row. Without the switch nothing changes at all.Why Reflex holds the frames
SIMULATION_STARTat the previous present's end, thenSIMULATION_ENDand both render-submit markers together, at the present. In reality the card's work for a frame is submitted all through the title's frame, as the title's command lists are translated.VICTORY_TIMELINE) shows the host's Present taking 6.1 ms a frame on average and up to 18.1 ms with 4x, against 0.2 ms without frame generation. That time is on the presenting thread, and it holds back the title's next frame.nvidia-smishows the whole card only 87 % busy (80-94 %) at 2,782 MHz and 143 W during that run.slReflexSleepbefore the next frame'sSIMULATION_START, as Streamline's Reflex guide asks, just moves the hold: Present drops to 0.09 ms, the sleep takes 10.8 ms a frame, and the rate is unchanged.ExecuteCommandListsof a frame, after itsSIMULATION_START) is also null: 33.3 ms, and 33.8 ms with the sleep as well. A log line confirmed that the markers fired every frame and that Streamline returned 0 for them.queueParallelismMode = eBlockNoClientQueues, with the input snapshots waiting for DLSS-G's inputs fence on the card: 33.0 ms;VICTORY_PRESENT_ASIDE=1): 31.5 ms, plusslDLSSGGetState must be synchronized with the present threadwarnings;So it's Reflex's low latency itself, not where it's told the frame starts, that holds this layer's frames. Those experiments aren't in this PR. I can open the marker and sleep changes separately if they're wanted. They're the integration the guide describes, but they made no difference here.
Trade-offs, stated plainly
DLSS-G reports status
0x2(Reflex not seen) and keeps generating: four frames a present throughout at 4x.The rendered frames are less even: p99 41.5 ms against 36.4 ms, and 14 frames over 50 ms against 0 in 90 s. That's the pacing Reflex was doing.
Latency is higher in principle, because nothing keeps the title from running a frame ahead. I didn't measure latency.
When it helps: when the card is the limit and Reflex leaves it room (here 81-87 % busy with Reflex's low latency on, 100 % with it off). When the CPU is the limit there's no idle card to fill, and only the pacing loss is left: a CPU-bound RTX 5060 Laptop saw more frames over 100 ms with the switch on (see the comments).
Where DLSS-G needs Reflex to generate at all: an RTX 3070 Laptop running frame generation through an unlocker showed no generated frames with the switch on. Since
2bcd16b9, 120 presents in a row with Reflex not seen, at most one frame shown, and the window in front turn low latency on again for the rest of the run, with a warning in the log.Hence a switch rather than a new default.
How it was tested
VICTORY_IMAGE_HOLD), the same in both runs.main5fabb46e+ this, switch unset: 36.1 ms a rendered frame (27.7 fps, about 112 shown), p95 36.4, p99 36.4. Card 81 % busy, the submitting thread working 35.0 ms a frame. Status 0x0.VICTORY_FG_REFLEX_OFF=1: 26.6 ms (37.6 fps, about 152 shown), p95 38.0, p99 41.5. Card 100 % busy, the submitting thread working 20.7 ms. Status 0x2.cargo test --locked -p victory-gpu --lib: 1,094 passed, 1 failed. The failure washost::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queue, which passes when run on its own, on this branch twice and onmainonce. It's flaky under the full parallel run, and this change doesn't touch it.Checked for overlap
I searched the open pull requests for the same issue and for the files this touches. Related:
None changes the mode used with frame generation.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Aniseto on 2026-12-01T12:48:31Z.
Ran the full
victory-gpulibrary suite at743a7b60on an NVIDIA Blackwell desktop part with 16 GB of VRAM. The new switch is opt-in and was left unset.Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.98.1 (48a229cea 2026-09-01), MSVC 14.44.35207, debug build, detached worktree at the exact PR head, own
CARGO_TARGET_DIR, no local patches.The one failure is
host::packed_present_tests::packed_float_single_planes_are_presented, athost.rs:17713- the same pre-existing failure reproduced onmain5fabb46eon this host with a separate target directory (also 1094/1/66 in the earlier control). The description's different flaky failure (host_list_uav_pool_lifecycle_retim_and_info_queue) did not occur here. No title run was done, so the Reflex/frame-generation A/B was not measured on this adapter.Not tested: a retail title with DLSS frame generation,
VICTORY_FG_REFLEX_OFF=1, the RTX 5080 A/B of the description, Wine, AMD adapters, release profile, game data.AI-assisted (OpenCode), model: MiMo-V2.6-Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the suite, wrote this report; the worktree was not modified; no game data was used.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mstrmoos on 2026-12-01T12:51:54Z.
A follow-up on the pacing trade-off. With Reflex's low latency off, its frame-rate limiter (
ReflexOptions::frameLimitUs) still works, and it gets most of the evenness back.One thing to know about the limiter: with frame generation on, it counts every frame shown, generated ones included. A limit of 26,000 µs at 4x held the title to 104 ms a rendered frame (9.6 fps). So for a rendered frame every N µs at Kx, the value to give is N / K.
On my play branch (#4835's code plus this switch), on the same pier as above: 90 s standing still, water in frame, the terrace behind, the far shore, about 4,700 draws a frame. 4x, Reflex low latency off,
slReflexSleepcalled before the next frame's simulation marker:frameLimitUs = 6500(~154 shown)The card stays 100 % busy in both. I've kept that on a separate switch on my branch,
VICTORY_FG_FRAME_LIMIT_US=<µs>. TheslReflexSleepcall it relies on isVICTORY_REFLEX_SLEEP=1. Happy to add both here, or open them as their own PR, whichever you prefer.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tikD1337 on 2026-12-01T13:28:06Z.
Tested
VICTORY_FG_REFLEX_OFF=1withDLSS Quality+Frame Generation 2x(VICTORY_FRAMEGEN=1,VICTORY_FRAMEGEN_X=2) on RTX 4070 Ti SUPER 16 GB (Driver621.1.0) + Ryzen 5 7600 + Win1126300(--release,5fabb46e+#4885THIN_PEEPHOLE=1+#4877+#4872+#355601/03/04,PORT_CONSTANTS=0):28.71 FPS(34.83 ms/f), 5 s peaks up to29.5 FPSbase (5.15k–5.65kdraws),22.5–22.8 FPSbase in10.2k–11.1k-draw windows (card=20.8 ms,submit_prep=31.0 ms,VRAM=9546 MB).Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Freeman022026 on 2026-12-01T14:04:25Z.
Tested
VICTORY_FG_REFLEX_OFF=1on an RTX 4090 24 GB (driver 621.14), Ryzen 7 7800X3D, 64 GB RAM, Windows 11, Series X profile at 2560x1440, DLSS Performance, 2x DLSS Frame Generation, ray tracing off.This was a local MSVC release build on
v2026.11.30.02(84bd61e2) with a local PR stack that includes #3411 (VICTORY_REFLEX_ASIDE=1), #4872, #4875, #4876, and #4877. I adapted the one-line check inset_reflexto work alongside #3411'sreflex_mode()and skippedslReflexSleepwhileVICTORY_FG_REFLEX_OFF=1is set.Observed over a 12-minute session (554 gameplay seconds with at least 180 title lists per frame):
slDLSSGGetStatereportedstatus=0x2(Reflex not seen) in 125 of 134 samples (93%), with 11 status-change warnings. On the prior 6-hour run on the same PC with Reflex mode 1 andVICTORY_REFLEX_ASIDE=1, every sample stayed atstatus=0x0with 0 status changes.Present()time stayed low (0.50 ms median longest, 1.10 ms p90), and the on-screen FPS readout climbed during lighter scenes.VICTORY_REFLEX_ASIDE=1, matching the pacing trade-off mstrmoos noted above. RemovingVICTORY_FG_REFLEX_OFF=1was needed to get smooth 2x FG delivery back.Not tested:
VICTORY_FG_REFLEX_OFF=1combined withReflexOptions::frameLimitUs, 3x or 4x frame generation, or an isolated build on cleanmain.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by vi-tester-8gb on 2026-12-01T15:33:51Z.
One data point from a CPU-bound 8 GB laptop, where it went the other way: more hitches with
VICTORY_FG_REFLEX_OFF=1.PC: RTX 5060 Laptop GPU 8 GB (driver 621.24), i7-13620H, 32 GB RAM, Windows 11.
Build:
v2026.11.30.03+ #4206 + #4294 + #4581 (cef63b9c) + this PR, local--release. Series S profile, DLSS Performance, DLSS FG 2x,--fps 16(our own cap, not Reflex'sframeLimitUs, which stays 0),VICTORY_VRAM_BUDGET_MB=6400. Here the frame is ~60 ms: the submitting thread prepares for ~45-50 ms and the card's own time is about the same. So Reflex's ~11 ms isn't what limits us.Same exe and settings, one run with
VICTORY_FG_REFLEX_OFF=1and one without, played by hand (not the same route, so read it as a hint):@mstrmoos's note about the limiter fits this: with low latency off, nothing kept our frames evenly paced. We haven't tried
REFLEX_OFF=1together with Reflex'sframeLimitUsyet. For a card-and-CPU-bound 8 GB setup, the default (off) looks like the right choice.Written up with help from Claude (AI); numbers are from our own logs.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mstrmoos on 2026-12-01T15:38:37Z.
Thanks, that's a useful counterpoint, and it fits what the switch does. Reflex's low latency costs a card-bound setup about 11 ms a frame, because it holds the title back while the card has room to spare (100 % busy with it off, 81-87 % with it on, on my 5080). On your laptop the submitting thread is the limit at 45-50 ms. So there's no idle card for the switch to fill, and what you see is only the pacing Reflex was doing. Your 10-20 minute row (13.2 % against 2.5 % over 100 ms) is that pacing loss on its own.
So I'd describe it as: helps when the card is the limit and has room under Reflex; leave it off when the CPU is the limit. I'll add that to the description.
To get some of the pacing back, Reflex's frame limiter still works with low latency off. I've been testing
frameLimitUsbeside this switch, and it counts shown frames, so it's the rendered frame time divided by the multiplier. On my pier at 4x, 6,500 µs took the seconds with p95 over 33 ms from 84 of 90 down to 11 of 90. A 30-minute run with it today: p95 26.1 ms, p99 29.9 ms, no crash. Your own--fps 16cap is a different mechanism, so the two may not compare.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mstrmoos on 2026-12-01T15:46:33Z.
Thanks for the 4090 run. It's the same picture as the laptop above. Reflex's low latency was doing pacing as well as holding frames back, and with it off on 2x and no limiter, delivery gets uneven. That status 0x2 shows in 93 % of samples confirms the switch was in effect.
What I'd try with it on is Reflex's
frameLimitUsset to the rendered frame time divided by the multiplier. It counts shown frames, so a ~33 ms rendered frame at 2x needs about 16,500 µs. That's what brought my 4x tail back. Comparing it againstVICTORY_REFLEX_ASIDE=1at mode 1 on your PC would be a good test. If #3411's thread gets the card busy without giving up the pacing, that's the better answer for setups like yours.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by albertik322-sudo on 2026-12-01T17:00:19Z.
Negative result on a 30-series laptop, worth knowing before this spreads. PC: RTX 3070 Laptop 8 GB, i7-11800H, 32 GB RAM, Windows 11. Series S, 1080p output, DLSS Performance, FG x4. Frame generation here runs through the Universal MFG Unlocker (MFGUnlocker.dll — the only way to get FG on RTX 30).
With
VICTORY_FG_REFLEX_OFF=1the DLSS FG chain breaks completely:dlfgPresent.cpp updateStatusfails every frame with eDLSSGStatusFailReflexNotDetectedAtRuntime — frame generation stops engaging at all. On this setup Reflex is apparently a required part of the FG pipeline, not an optional add-on. Worse, the error spam destabilizes the unlocker itself (MFGUnlocker.dll failfast crashes minutes later).So the +36% on the 5080 comes with a caveat: anywhere Reflex is woven into the FG chain (at least RTX 30 laptops with the unlocker), turning it off costs everything instead of gaining anything. Maybe gate the switch off when Reflex detection fails rather than letting FG die.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mstrmoos on 2026-12-01T17:06:32Z.
Thanks, that's an important one. Your suggestion is in:
2bcd16b9.Your setup and mine report the same status, 0x2 (Reflex not seen). The difference is what DLSS-G does next: on my 5080 it keeps showing four frames a present, and through the unlocker on your 3070 it shows none. So the switch now watches for that. If DLSS-G shows at most one frame a present for 120 presents in a row with the Reflex bit set and the game window in front, low latency goes back on for the rest of the run, with one warning in the log:
The window has to be in front because DLSS-G also shows one frame a present while the window is out of focus, and an alt-tab shouldn't turn it back on. There's a unit test for the step: no fallback while frames are generated, fallback at exactly 120, and the count resets on a generating present, a status without the bit, or loss of focus. I can't reproduce your setup, so if you can try
2bcd16b9with the switch on, the warning should appear about 4 seconds in, and frame generation should come back.I can't tell whether the unlocker's failfast came from the error spam or from frame generation dropping out. Either way, both should stop once low latency is back on.
I've also added a README row for the switch that says where it helps and where it doesn't: card-bound PCs gain, and CPU-bound ones get more hitches (from the laptop and 4090 reports above).
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.