Card kept awake no more while Reflex paces frames (the 14 fps lock) #1938
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!1938
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1938"
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?
@AS-AI-DEV on GitHub · 2026-11-29 03:31 UTC · original
AS-AI-DEV:main→main· +29 −2 · 2 files · 1 commits · openFixes #1405. Also #995 (and the closed #515).
What it changes
What was wrong. With DLSS frame generation set up, Reflex low latency is on. Reflex measures each frame's GPU time from the card's queues, and with
VICTORY_CARD_AWAKE=1it counts the never-ending compute job ofcrates/victory-gpu/src/host/awake.rsin: the card then looks busy for the whole frame, Reflex takes the frame for GPU-bound and sleeps the CPU inside each present to match it, which keeps the frame that long. A start that falls into this stays at 14.0 fps (71.4 ms a frame) for the whole session, with the time spent inside the present call (the stack in #250:Present → sl.interposer → NVAPI → driver Sleep).What this does.
host::awake::sentleaves the job out while Reflex is on (streamline::reflex_on(), set where Reflex low latency is asked for), and says so once in the log.VICTORY_CARD_AWAKE=alwayskeeps the old behaviour. Without frame generation nothing changes. Two files, +29 / −2.Since
42c064dthe launchers leaveVICTORY_CARD_AWAKEoff, so default starts no longer hit this; it still happens to anyone who turns it back on with frame generation (as42c064dsuggests "where it helps"), and in launchers and builds that still set it.How it was tested
VICTORY_CARD_AWAKE=1): 11 of 21 starts locked at 71.4 ms; present call 8–31 ms (median per start) when locked, 0.1–0.8 ms when free.VICTORY_CARD_AWAKE=0set by hand: 0 of 6 locked, 15–24 fps, present call 0.1–0.6 ms.VICTORY_CARD_AWAKE=1still set by the launcher): the job left out (log line), not locked, 18.1 fps, present call 0.56 ms.slReflexGetState) in a locked start gave GPU active 71–73 ms a frame, equal to the frame step; in free starts 19–41 ms. Windows' GPU counter: 95–96 % busy with the job, 52–64 % without, at the same power (104–119 W).cargo testpassed for the crates it touches: yes,victory-gpu(550 passed, 0 failed, 43 ignored), ond4b5d51with this change. The branch here is the same commit applied on568c5e5, where it applies cleanly; it was not rebuilt on568c5e5.42c064dand #825 cover that side).Checked for overlap
host/awake.rs: keeps the card awake only through frames of many submissions, for #771; the two changes are independent and should merge either way), #542 (launcher default, superseded by42c064d), #250 (Reflex only while frame generation is on; with this change the awake job no longer feeds Reflex at all).🤖 Generated with Claude Code
github-bot referenced this pull request2026-11-29 13:06:17 +00:00
@dyshay on GitHub · 2026-11-29 13:05 UTC · original
Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch
janus-prs, on top of829188e9plus a couple of local fixes). Read the full diff first: no network, process spawning, binaries, build/CI/dependency changes or game data. Builds with--profile diag --features diagnostics; adapted to our tree: Reflex is switched on and off with frame generation here (set_reflex), soREFLEX_ONfollowsset_reflexinstead of staying on for the whole process, andVICTORY_CARD_AWAKE=alwayswas added to the existing parser. Targeted tests pass. In-game runs on an RTX 4090 are queued; I'll report the frame rate here.@AS-AI-DEV on GitHub · 2026-11-29 20:16 UTC · original · edited 2026-11-29 21:20 UTC
Thanks for reviewing and testing it. I made the same adaptation when I moved my own tree to
829188e(and since tof889bb0):REFLEX_ONis set insideset_reflex, so it follows Reflex being switched on and off with frame generation, andVICTORY_CARD_AWAKE=alwaysgoes through the same parser as1. Onf889bb0it rebased without other changes.Looking forward to the RTX 4090 numbers. The case it fixes shows as frames held at exactly 71.4 ms (14.0 fps) for a whole session with frame generation and Reflex on while the card-awake job runs; with the change, the log line "the card is not kept awake while Reflex paces frames" appears once at the start. If this PR should be rebased onto the current main, say so and I will update it.
54806fb6bcto811459689c@AS-AI-DEV on GitHub · 2026-11-30 22:06 UTC · original
Rebased onto the current main (
e1251c3); the conflicts are gone.What changed in the rebase, nothing else:
REFLEX_ONis now set insideset_reflex, so it follows Reflex being switched on and off with frame generation, andVICTORY_CARD_AWAKE=alwaysgoes through the existing parser (the same adaptation described above for829188e). The change is still 29 lines added and 2 removed incrates/victory-gpu/src/host/awake.rsandcrates/victory-gpu/src/streamline.rs.The measurements in the description are from the original base. On
e1251c3I have built it, runcargo testforvictory-gpu, and played 35 minutes with frame generation on; the session did not lock at 71.4 ms.811459689cto8cf3ca974cView 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.