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

Open
opened 2026-11-26 19:47:02 +00:00 by github-bot · 2 comments
Owner

@⁠Jesper-Andersson on GitHub · 2026-11-26 19:45 UTC · original

Machine

  • GPU: NVIDIA GeForce RTX 2070 SUPER 8 GB (Turing, 32-lane waves), driver 32.0.16.2114 (621.14)
  • CPU / RAM / OS: Ryzen 7 5800X (8 cores / 16 threads) / 32 GB / Windows 11 Pro Insider 10.0.26320
  • Repo @ c9c932c (main), build diag. A second set of runs was on a local branch: c9c932c with 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 --used done before each set; the pipeline book is recorded.

What was run

scripts\play.ps1 -Exe <game exe>                                   # main, Series X
scripts\play.ps1 -Exe <game exe> -Console series-s -More @{ VICTORY_UPSCALE='dlss'; VICTORY_DLSS_QUALITY='0' }   # local branch
... same, plus VICTORY_THIN_THREADS='14'                           # run D
wpr -start CPU / wpr -stop                                         # during run D, 58 s of gameplay

Gameplay = the per-interval copystat: recording per frame (N frames) lines under 25 fps (menus run at 30). Medians over those intervals.

Results

per frame, medians over gameplay main (Series X) local branch (Series S, DLSS)
frame 431 ms (p90 925) 355-385 ms (p90 460-930)
card busy (the card's clock line) 53 % 30-62 %
card with nothing of ours queued 138 ms 128-181 ms, almost all "while the title had not submitted"
title's threads waiting at presents (queue::behind) 143 ms (p90 317) 149-194 ms
last submission to the present call (frame account) 77 ms 76-83 ms
relay thread waiting for the card with nothing to land 157 ms 165-192 ms
list calls translated (VICTORY_THIN), summed thread time 35,000 calls, 1.6 s 38,000 calls, 2.3-2.4 s
pass over the heap's views: looking at slots 99.5 ms 45 ms (p90 147); 29-33 ms more waited at the lists' close
waits for the write trackers' "guards" lock 47 ms 33-41 ms (about 330 waits)
CPU-side copies (copied from), the largest range 0x33a60000+0xae00000: 9.8x a frame, 1.79 GB a frame
shader writes looked for on the CPU 181 MB compared, 97-133 MB snapshotted
new memory waited for (VICTORY_WAIT_RESIDENT), whole run 112,000 waits, 41.9 s 164,000-300,000 waits, 40-81 s (separate issue)
Switch Result
VICTORY_THIN_THREADS=14 (default 8) frame 371 ms against 386 (noise), p90 455 against 932; summed translation time rose from 2.4 s to 3.4 s a frame for the same calls
DLSS Quality vs Performance, preset default vs J no measurable change: the title renders 1280x720 either way

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_at 1.5 %, HostHeap::keep 1.4 %).

Notes

  • Neither the card nor the CPU is the limit here: the frame is a chain of waits. The title waits at the present for the frame before it to be sent (VICTORY_SUBMIT_FRAMES defaults to 1, queue/behind.rs:722). Meanwhile the card idles until the title submits, and more translation threads only add waiting. A VICTORY_TIMELINE capture (the chain each present came out of) is the next thing I will take, and I will add it here.
  • Same symptom as #61 (4060 Ti, 398 ms with the GPU idle). There, pipeline creation was on the path. Here recording per frame reports 0.0 ms waiting for pipelines during gameplay after warm --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).
  • The 8 compute pipelines refused here (E_INVALIDARG) are the WaveSize(64) ones of #323 / #37, nothing new.
  • Snapshots: related to #343. Guards' lock: compare #270 (the guards' time under Wine). Dynamic descriptor slots ran out once in each set ("a table found no run of free slots", one draw dropped): #47 / #48.

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 19:45 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/370) ## Machine - GPU: NVIDIA GeForce RTX 2070 SUPER 8 GB (Turing, 32-lane waves), driver 32.0.16.2114 (621.14) - CPU / RAM / OS: Ryzen 7 5800X (8 cores / 16 threads) / 32 GB / Windows 11 Pro Insider 10.0.26320 - Repo @ `c9c932c` (main), build diag. A second set of runs was on a local branch: `c9c932c` with 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 --used` done before each set; the pipeline book is recorded. ## What was run ``` scripts\play.ps1 -Exe <game exe> # main, Series X scripts\play.ps1 -Exe <game exe> -Console series-s -More @{ VICTORY_UPSCALE='dlss'; VICTORY_DLSS_QUALITY='0' } # local branch ... same, plus VICTORY_THIN_THREADS='14' # run D wpr -start CPU / wpr -stop # during run D, 58 s of gameplay ``` Gameplay = the per-interval `copystat: recording per frame (N frames)` lines under 25 fps (menus run at 30). Medians over those intervals. ## Results | per frame, medians over gameplay | main (Series X) | local branch (Series S, DLSS) | |---|---|---| | frame | **431 ms** (p90 925) | 355-385 ms (p90 460-930) | | card busy (`the card's clock` line) | 53 % | 30-62 % | | card with nothing of ours queued | 138 ms | 128-181 ms, almost all "while the title had not submitted" | | title's threads waiting at presents (`queue::behind`) | 143 ms (p90 317) | 149-194 ms | | last submission to the present call (`frame account`) | 77 ms | 76-83 ms | | relay thread waiting for the card with nothing to land | 157 ms | 165-192 ms | | list calls translated (`VICTORY_THIN`), summed thread time | 35,000 calls, 1.6 s | 38,000 calls, 2.3-2.4 s | | pass over the heap's views: looking at slots | 99.5 ms | 45 ms (p90 147); 29-33 ms more waited at the lists' close | | waits for the write trackers' "guards" lock | 47 ms | 33-41 ms (about 330 waits) | | CPU-side copies (`copied from`), the largest range | | 0x33a60000+0xae00000: 9.8x a frame, **1.79 GB a frame** | | shader writes looked for on the CPU | | 181 MB compared, 97-133 MB snapshotted | | new memory waited for (`VICTORY_WAIT_RESIDENT`), whole run | 112,000 waits, 41.9 s | 164,000-300,000 waits, 40-81 s (separate issue) | | Switch | Result | |---|---| | `VICTORY_THIN_THREADS=14` (default 8) | frame 371 ms against 386 (noise), p90 455 against 932; summed translation time **rose** from 2.4 s to 3.4 s a frame for the same calls | | DLSS Quality vs Performance, preset default vs J | no measurable change: the title renders 1280x720 either way | 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_at` 1.5 %, `HostHeap::keep` 1.4 %). ## Notes - **Neither the card nor the CPU is the limit here: the frame is a chain of waits.** The title waits at the present for the frame before it to be sent (`VICTORY_SUBMIT_FRAMES` defaults to 1, `queue/behind.rs:722`). Meanwhile the card idles until the title submits, and more translation threads only add waiting. A `VICTORY_TIMELINE` capture (the chain each present came out of) is the next thing I will take, and I will add it here. - Same symptom as #61 (4060 Ti, 398 ms with the GPU idle). There, pipeline creation was on the path. Here `recording per frame` reports 0.0 ms waiting for pipelines during gameplay after `warm --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). - The 8 compute pipelines refused here (`E_INVALIDARG`) are the `WaveSize(64)` ones of #323 / #37, nothing new. - Snapshots: related to #343. Guards' lock: compare #270 (the guards' time under Wine). Dynamic descriptor slots ran out once in each set ("a table found no run of free slots", one draw dropped): #47 / #48. ## AI use Runs played by me. Logs read, profile exported and this report drafted with AI assistance (Claude Code). No game files attached.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:47:02 +00:00
Author
Owner

@⁠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::exact makes 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 with VICTORY_CARD_BUFFERS_MIN_KB=64 + VICTORY_CARD_BUFFERS_MB=1024 on top to 180 ms. The title's wait at presents fell from 180 to 9 ms. A VICTORY_TIMELINE capture 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 20:25 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/370#issuecomment-7202653515) 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::exact` makes 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 with `VICTORY_CARD_BUFFERS_MIN_KB=64` + `VICTORY_CARD_BUFFERS_MB=1024` on top to 180 ms. The title's wait at presents fell from 180 to 9 ms. A `VICTORY_TIMELINE` capture 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.
Author
Owner

@⁠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.

  • Build: the local test branch at b9b32e4, which is main with open PRs, including #221's own-bytes pool.
  • Settings: play.ps1 defaults, with card buffers of 64 KiB to 1024 MB (see #367).
  • Each run: the same route, about 4 minutes of play.

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::exact lock.

per frame, gameplay medians this issue's runs run H (now) run I (H + VICTORY_SUBMIT_FRAMES=2, #379)
frame, median / p90 355-385 / 460-930 ms 156 / 238 ms 142 / 260 ms
title's threads waiting at presents 143-194 ms 11 ms 0.0 ms
card busy (the card's clock) 30-62 % 98 % 97 %

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.

  • Ordinary frames (179 ms each): the chain is the card. 130 ms is "the card running submissions", plus 37 ms "sent, the card not started yet". Our submit thread is 7 ms of it, and no lock or list translation shows.
  • A streaming moment (379 ms a frame): the title's own 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".
  • The card's clock split from #366/#387: of the card's idle time, 0-4 ms a frame is now our line waiting for translation.

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:

  • Ports 6 and 7 (#378): they cut the guards' lock waits from 56 to 13.5 ms but did not shorten the frame, and they broke the picture.
  • Port 1's 32-bit heap placed (#365): slower here.
  • The new-memory waits (#371): no longer set the median frame, but single waits of up to 592 ms remain.
  • A pitfall for anyone measuring here: the same code ran about 50 ms slower when started from a second worktree than from 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.

**@⁠Jesper-Andersson** on GitHub · 2026-11-26 22:17 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/370#issuecomment-7204540472) What the chain looks like now, on the same PC: RTX 2070 SUPER 8 GB, Series S, DLSS Quality. - Build: the local `test` branch at `b9b32e4`, which is main with open PRs, including #221's own-bytes pool. - Settings: `play.ps1` defaults, with card buffers of 64 KiB to 1024 MB (see #367). - Each run: the same route, about 4 minutes of play. **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::exact` lock. | per frame, gameplay medians | this issue's runs | run H (now) | run I (H + `VICTORY_SUBMIT_FRAMES=2`, #379) | |---|---|---|---| | frame, median / p90 | 355-385 / 460-930 ms | 156 / 238 ms | 142 / 260 ms | | title's threads waiting at presents | 143-194 ms | 11 ms | 0.0 ms | | card busy (`the card's clock`) | 30-62 % | 98 % | 97 % | 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. - **Ordinary frames (179 ms each):** the chain is the card. 130 ms is "the card running submissions", plus 37 ms "sent, the card not started yet". Our submit thread is 7 ms of it, and no lock or list translation shows. - **A streaming moment (379 ms a frame):** the title's own `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". - **The card's clock split from #366/#387:** of the card's idle time, 0-4 ms a frame is now our line waiting for translation. 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: - **Ports 6 and 7** (#378): they cut the guards' lock waits from 56 to 13.5 ms but did not shorten the frame, and they broke the picture. - **Port 1's 32-bit heap placed** (#365): slower here. - **The new-memory waits** (#371): no longer set the median frame, but single waits of up to 592 ms remain. - **A pitfall for anyone measuring here:** the same code ran about 50 ms slower when started from a second worktree than from `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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/avatarmanz--VIctory-7900XTX#370
No description provided.