RTX 2070 SUPER 8 GB + Ryzen 7 5800X on c9c932c: 430 ms frames with the card half idle and 3.7 of 16 CPU threads busy; the frame is a chain of waits #370
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#370
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:45 UTC · original
Machine
c9c932c(main), build diag. A second set of runs was on a local branch:c9c932cwith about 60 open PRs of this repo and four Marvisak/VIctory PRs merged (#2037 #2735 #2795 #2808), Series S, DLSS. Both show the same picture, so both are given.victory warm --useddone before each set; the pipeline book is recorded.What was run
Gameplay = the per-interval
copystat: recording per frame (N frames)lines under 25 fps (menus run at 30). Medians over those intervals.Results
the card's clockline)queue::behind)frame account)VICTORY_THIN), summed thread timecopied from), the largest rangeVICTORY_WAIT_RESIDENT), whole runVICTORY_THIN_THREADS=14(default 8)CPU profile (WPR sampling, run D, 58 s): victory.exe used 213 s of CPU, about 3.7 of 16 hardware threads. One thread ran 84 % of a core (48.8 s); it and the next busiest (12.9 s) start outside victory.exe, so they look like the title's own threads. By module: the title's image 34 %, kernel 17 %, vcruntime (memcpy) 9 %, the NVIDIA user-mode driver 6 %. No function of ours is above 1.5 % (
victory_safe_copy_at1.5 %,HostHeap::keep1.4 %).Notes
VICTORY_SUBMIT_FRAMESdefaults to 1,queue/behind.rs:722). Meanwhile the card idles until the title submits, and more translation threads only add waiting. AVICTORY_TIMELINEcapture (the chain each present came out of) is the next thing I will take, and I will add it here.recording per framereports 0.0 ms waiting for pipelines during gameplay afterwarm --used, so that is not it on this machine. Other NVIDIA reports on this tree are 5-10x faster (#70: 69-81 ms; #143: about 27 fps); their CPUs and RAM differ (32 GB here is below the README's 64 GB: 20 GB private with 4.8 GB free during run D).E_INVALIDARG) are theWaveSize(64)ones of #323 / #37, nothing new.AI use
Runs played by me. Logs read, profile exported and this report drafted with AI assistance (Claude Code). No game files attached.
@Jesper-Andersson on GitHub · 2026-11-26 20:25 UTC · original
Two updates.
The chain has a known main cause now: #367 (same PC; runs B and D in it are the local-branch runs above).
shadow::exactmakes about 330 shared buffers a frame under one lock, each made resident (#221's cause, and 85-91 % of #371's waits). The translation threads spend 75-85 % of the frame waiting behind that lock, which explains why 14 threads made it worse. With pr0vId3nce's own-bytes pool the frame went from 353 to 266 ms, and withVICTORY_CARD_BUFFERS_MIN_KB=64+VICTORY_CARD_BUFFERS_MB=1024on top to 180 ms. The title's wait at presents fell from 180 to 9 ms. AVICTORY_TIMELINEcapture on that state is being taken; it will go to #367 or here.Correction to the CPU profile paragraph. The WPR trace was recorded in memory (circular) mode. It is 181 s long, but its samples cover only the last part of it, and I estimated the span from the context-switch totals (58 s). The figures "about 3.7 of 16 hardware threads" and "one thread ran 84 % of a core" depend on that span. Read them as "victory.exe used roughly 1.6-3.7 of 16 hardware threads; one thread was clearly the busiest". The module split (title image 34 %, kernel 17 %, vcruntime 9 %, NVIDIA driver 6 %, nothing of ours above 1.5 %) is a ratio of samples and stands. The conclusion stands too: the CPU as a whole was mostly idle, and the frame waited.
@Jesper-Andersson on GitHub · 2026-11-26 22:17 UTC · original
What the chain looks like now, on the same PC: RTX 2070 SUPER 8 GB, Series S, DLSS Quality.
testbranch atb9b32e4, which is main with open PRs, including #221's own-bytes pool.play.ps1defaults, with card buffers of 64 KiB to 1024 MB (see #367).Most of the chain this issue describes is gone. It was the title waiting at presents while our submit line waited for list translation, and translation waiting on the
shadow::exactlock.VICTORY_SUBMIT_FRAMES=2, #379)the card's clock)In run I the user saw a bit more graphical artifacting, so #379 is a draft until that is understood.
A timeline of 5 gameplay frames (
VICTORY_TIMELINE, chain back from each Present, by cause). It was taken on a branch of the same tree, run A of #365.XMemMapPhysicalPages, 101 ms a frame in back-to-back calls of 7-15 ms each, plus 69 ms of the relay's "read-backs, telling the title".So on this card the frame is now mostly the GPU's, plus the title's page mapping while it streams.
Related findings from the same PC:
test, even with the identical exe copied over. The cause has not been found, so compare only runs started from the same folder.AI use: log and trace reading and write-up with AI assistance (Claude Code). The runs are my own.