Card awake: only through frames of many submissions, not in menus (fixes #771) #825
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!825
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-825"
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?
@kibagami-nc on GitHub · 2026-11-28 07:16 UTC · original
kibagami-nc:fix/card-awake-only-in-busy-frames→main· +95 −6 · 2 files · 1 commits · merged 2026-11-29 08:16 UTCFixes #771.
What happens
VICTORY_CARD_AWAKE=1is set by the launcher. It keeps one group of 64 threads counting on a compute queue while the title submits. It exists for the gaps between some thirty submissions a frame: a captured frame went from 37.8 ms to 28.6 ms with it (86694b5). In a menu, it ran just the same.On 1bit0's RTX 3060, the title's menu runs at three submissions a frame:
VICTORY_CARD_AWAKE=0Focused, the card counted as 100% busy, and the frames waited about 68 ms each for it. Vertical sync was off in the NVIDIA Control Panel. A 5070 Ti laptop did not show it (ChenmouXu), so it depends on the card or setup. But a frame of three submissions has no gaps for the awake work to fill anyway.
The change
crate::host::awakecounts the title's submissions frame by frame. The frame count iscrate::queue::presented, now readable in every build.MANY(8) submissions. Gameplay, at some thirty a frame, keeps it; a menu does not.wanted_at, so the rule is tested.VICTORY_CARD_AWAKEunset nothing runs, as before.Tests
New
host::awake::tests::submissions_are_counted_frame_by_frame: three submissions in a frame count as three, thirty as thirty, and a frame without submissions is skipped.New
host::awake::tests::the_card_is_kept_awake_only_through_busy_frames:MANY;MANY - 1;turnsmode, only on its turns.With the
MANYrule taken out, it fails on "a menu's frame".cargo test -p victory-gpu --lib --locked: 455 passed.With
--features diagnostics: 508 passed. One run hadwatch::tests::what_the_kernel_writes_through_is_not_guarded_for_another_viewfail. That is the known flake of the watch view tests, which #724 fixes, and it passed on two reruns.Clippy (default and
--all-features): nothing in the changed files. Main's own lints are fixed in #665.Not run in the game here. Gameplay on the RTX 3060 with the card kept awake is not measured yet; I asked for that on #771.
Checked by others
Yoshi-233 (RTX 4070 Ti SUPER, driver 617.42) measured the gameplay side with the existing
VICTORY_CARD_AWAKE=turns, frame generation on. A boat was held still facing a bridge, with five off/on pairs of 20 s phases in one process:nick0451 (RTX 3090 24 GB, Series S, DLSS Performance) ran it in the world against
main, three runs each with a frozen save, about 6,000 draws a frame: a median of 24.4 frames a second with this change, 24.6 without, within the setup's own 2-3% noise. With many submissions a frame the card is kept awake as before, as it should be. No crash and noERRORline. The menu case of #771 could not be run there (scripted keys, the window not focused).This change still keeps the helper out of menus (#771). #927 goes further and turns it off by default in the launchers.
No game files, dumps or extracted data are included.
@Yoshi-233 on GitHub · 2026-11-28 08:32 UTC · original
I measured the gameplay side of the 8-submission threshold on a desktop RTX 4070 Ti SUPER (16 GB, driver 617.42). This was the existing
VICTORY_CARD_AWAKE=turnson the November 28 .01 base, with frame generation on. I held the boat still facing the same bridge and used one process for five successive off/on pairs. Each phase lasted 20 seconds; I left the first 5.5 seconds and final second out of the measurements. Screenshots and the runtime’s transition log identify each phase.All five off phases rendered faster than their adjacent on phases (off 18.75–19.1, on 17.1–17.55 FPS). This scene sits above the proposed threshold. The threshold still addresses the three-submission menu case in #771. For this particular gameplay workload, submission count alone would leave the helper active, so retaining the user override is valuable. I have not run the new menu logic on this card.
@nick0451 on GitHub · 2026-11-28 10:01 UTC · original
Tested in the game: RTX 3090 24 GB (driver 610.88), i9-14900K, Windows 11. A release build of this PR merged onto main at
63b902f. Series S, DLSS Performance, frame generation off.This covers play in the world only. Main and this PR were run in turn, three rounds each, after one warm-up start each. Every run used the same frozen save, outdoors, about 6,000 draws a frame, 40 s to settle and 60 s measured.
In the world, with its many submissions a frame, the card is kept awake as before. The frame rate is within the 2-3% noise of this setup (main against itself). No crashes or
ERRORlines.Not tested: the menu case of #771 (frame rate with the window focused in a menu). My runs drive the game with scripted keys and cannot keep its window focused, so I cannot reproduce the "focused" column here.
Tested with an AI assistant (Claude Code); results are from this PC.