RTX 2070 SUPER 8 GB, Series S: the own-bytes pool (#221) and CARD_BUFFERS_MIN_KB=64 + MB=1024 take the frame from 353 to 180 ms #367
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#367
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Jesper-Andersson on GitHub · 2026-11-26 19:44 UTC · original
Machine
2de9980(main) plus open PRs. B and D ran without the pool; E and F ran with pr0vId3nce's own-bytes pool from #221 (VIctory-NVIDIA 67a50c6 + 835d4e8), #327, #333, #337 and #360. Diag build.VICTORY_UPSCALE=dlss),scripts\play.ps1defaults otherwise.What was run
Results
Medians over gameplay seconds (frame lines under 25 fps). E and F are short runs (3-4 minutes against B's 7), so their numbers are rough.
VICTORY_THIN)VICTORY_WAIT_RESIDENT), since the startNotes
shadow::exactmakes about 330 shared buffers a frame under one lock, each made resident and mapped. 85-91 % of the "new memory waited for" calls come from these copies.VICTORY_CARD_BUFFERS_MIN_KB=64helps on an 8 GB card too, as long asVICTORY_CARD_BUFFERS_MBis raised to 1024: the copies in the card's memory came to 855 MB, more than the default 512. It removes about 265 MB a frame of CPU compares and snapshots. VRAM stayed within the budget. "Passes that made none for lack of room" did not rise (1,956 in E, 1,676 in F). #180's headroom/LRU would be the safety net.VICTORY_WIDE_MERGE=1does nothing with the relay on (from reading the code): it is read only inHost::card_back, and the relay lands on its own threads.PORT_ALL(#365); the frame-line counters that hid the translation waits are #366.AI use
Log analysis and write-up with AI assistance (Claude Code). The runs are my own.
@Jesper-Andersson on GitHub · 2026-11-27 03:16 UTC · original
More from the same PC (RTX 2070 SUPER 8 GB, Ryzen 7 5800X, 32 GB, Series S + DLSS), on a local branch:
test-perf3e9bbf7, which is a local test branch with upstream main merged, without Marvisak #3155.VICTORY_CARD_BUFFERS_MIN_KB=64,VICTORY_CARD_BUFFERS_MB=1024andVICTORY_SUBMIT_FRAMES=2are on, as in F above. Diag build. Gameplay = frame lines with over 1,000 draws, medians over 23 s of gameplay.With the card buffers on, the frame is now about 115-145 ms (was 180 in F). What is left points at the copies of title memory that stay in the PC's memory.
VICTORY_EXACT_BACK)Memory at the same moment:
Every host copy is a
Host::shared_buffer(host.rs, custom heap, write-back,MEMORY_POOL_L0). So apart from the 1 GB of card buffers, every shader read of a title buffer crosses PCIe 3.0, at about 12 GB/s against the card's 448 GB/s. Microsoft's residency page: "the wrong resource in system-memory can severely impact frame rate". F's gain from moving 1 GB of buffers to the card fits this.Two caveats:
VICTORY_CARD_SPANS=1(the card's own timestamps; same worktree, one startup-only commit later) gives, as medians over 41 s of gameplay per frame: frame 150 ms, the card working 86.9 ms (60 % of the frame) in 17 submissions, 39 ms idle between them. The clock's 67 % busy is about 17 ms more than the card's own count. So the card's own work is the largest single part of the frame here, and the PCIe reads above are the first suspect for it.VICTORY_CARD_BUFFERS_MBcompetes with textures and the 1,280 MB kept for targets (#407).Related work that targets this, none of it measured on an 8 GB card yet as far as I can find: Marvisak/VIctory#2705 (
VICTORY_CARD_COPIES, a card side for host copies) and fxceless/victory-fork#772 / #980 (VICTORY_INPLACE=4, hot title memory in VRAM, written back by a compute pass).This comment was made with AI assistance (Claude Code).