Profile on RTX 4080 / i7-14700KF: the submitting thread, by function (ETW, 30 s on the boat) #985

Closed
opened 2026-11-28 10:36:51 +00:00 by bossqunt · 2 comments
bossqunt commented 2026-11-28 10:36:51 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by bossqunt on 2026-11-28T10:36:51Z.


Hardware: i7-14700KF (8P + 12E, 28 threads), RTX 4080 16 GB (driver 616.64), Windows 11 26200.
Build: 7b27902 + a local counting switch (below), plain release (cargo build --release -p victory).
Settings: Series X profile, 2560x1440 output, DLSS Performance (1280x720 render), DLSS frame generation 2x, VICTORY_INPLACE=1.
Scene: the same every run, from the same save: the two opening cutscenes, then the boat on the water collecting the drugs.
Profile: wpr -start CPU -filemode, 48 s on the boat, middle 30 s analysed with xperf -a dumper -stacktimeshifting and the build's own PDB.

Frame lines (last 2 minutes, means of the 5-second lines)

Series S, 960x540 to 1080p Series X, 1280x720 to 1440p
fps (real) 26.9 19.4
ms/frame 37.2 52.9
preparing 23.3 27.4
card busy (card clock line) ~80 % ~79 % (~42 ms of a frame)
card idle behind the submitting thread 7.3 ms 10.4 ms

At 1440p queue::behind reports "that thread worked 51.8 ms" of a 53 ms frame, and the title's threads wait 28.7 ms a frame at presents.

The submitting thread (queue::behind → Host::execute_parts → Host::submit)

On the CPU 77 % of the 30 s (23,013 samples at 1 kHz). Of its samples under Host::submit, by direct callee:

Callee Share
Host::card_before 16.7 % (of it: D3D12Core 35 %, shadow::wide 17 %, memcpy 15 %, shadow::joined 7 %)
Host::take_steps 15.0 % (land::Pool::each 27 %, card_steps::plan 14 %, D3D12Core 14 %, card_steps::does_of 13 %)
shadow::wide (refresh jobs handed out, and the wait for them) 12.9 %
D3D12Core / driver 12.6 %
watch::ask_once 9.5 %
host::stale_of 6.3 %
Batch::flush / fill / refresh_textures / copy_spans / update 9.9 % together
Host::submit itself 4.7 %
Shadow::nothing_new 2.2 %

About 23 % of the thread's samples end in the kernel. No callee is more than 17 %: the time is spread over the whole of the shared-memory work, so we read it as support for item 1 of "What is next" in docs/findings.md (one submission's work over two threads in a row). Roughly, the looking (write watch, stale_of, the refreshes and wide) and the sending (card_before, take_steps, D3D12) are about half each.

What stands between the halves (from reading Host::submit at 7b27902)

We looked at what overlapping submission N's sending with N+1's looking would have to change; these are what we found, offered in case they are of use:

  1. card_before takes the dirty ranges of every card copy at once (shadow::card_dirty), so N+1's refreshes would have to wait, or their ranges carry the number of the submission that made them, with N taking only those up to N.
  2. The bytes N sends are taken out of the copies' CPU sides inside card_before (send::take, VICTORY_SEND_OWN). A refresh of N+1 into the same copy before that would be sent with N: the case send.rs describes.
  3. card_steps and late_blocked / stale_under_flights for N+1 look at the flights in the air, and N is not one yet. declared_writes(runs) depends only on the lists, so N's ranges could be published as soon as it begins.
  4. The order of ExecuteCommandLists and Signal on the one queue stays, if a single thread sends.

The translating threads (VICTORY_THIN, 8 threads)

Each is on the CPU about 46 % of the time (~3.7 cores in all); the log has 38,505 list calls a frame in 164.6 ms of their time (about 4.3 µs a call). 85 % of their samples are in draw::State::bind → State::tables, which goes to:

Under State::tables Share
draw::readable 21.1 %
descriptor::host::make_twinned 18.4 %
State::tables itself 14.1 %
HostHeap::keep 11.9 %
D3D12Core 8.1 %
HostHeap::constant_at 5.9 %
HostHeap::mirror 5.7 %
descriptor::view_at 4.9 %

These threads have room to spare, so this is not the frame's wall today. A cache of resolved tables whose slots have not changed would mostly give cores back (the 14700KF has 8 P-cores for the title, these eight and the submitting thread).

Which way buffer bytes go (VICTORY_TRAFFIC=1, a local counting switch)

A per-copy count of bytes up (title memory into a copy) and back (shader writes into title memory), 6.5 minutes of the same scene, Series S: about 30 MB up and 1.4 MB back a frame.

  • Copies whose bytes only ever went up: windows 34 % of the bytes up, card copies 14 %.
  • One copy, the 174 MB heap at 0x13c80000, is 50 % of all bytes up and 23 % of the bytes back (45 times more up than back).
  • One 1 MB card copy is back only (16 % of the bytes back).

VICTORY_INPLACE=1 placed 82-83 windows (about 390 MB) and turned down about 1,100-1,260 as view memory. Window bytes up went from 10.5 to 6.8 MB a frame, but fps at the same draw counts was within about 1 fps. VICTORY_SEND_BAR=1 on this PC: no difference beyond noise (26.4 vs 27.1 fps median, preparing 25.8 vs 26.1 ms).

The counting switch is small (a per-copy counter at Shadow::copy / take / take_landed and at the six landing and merge functions, plus a CSV beside the log) and can be sent as a pull request if it is of use.

Stalls near the second boat

When the other boat comes near, fps falls to 10-14 for a few seconds: 0.5 settles a frame of about 90-100 ms each, all "title memory read … by a fill of upload memory", with the card at 93-94 % busy. They show up in runs with and without VICTORY_INPLACE and VICTORY_SEND_BAR.

Logs

GPU: RTX 4080 16 GB (driver 616.64). Windows 11 (build 26200). CPU: i7-14700KF.
issue-985-logs.zip

Attachment Files

  • victory-nvidia-play-20261128-095901-38964.log: Series X, 1440p, the frame lines in the first table
  • victory-nvidia-play-20261128-101119-36808.log: the run the ETW profile was taken in
  • traffic-*.csv: VICTORY_TRAFFIC per-copy totals (Series S run, and the profiled run)
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6663537292 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/985). Originally posted by [bossqunt](https://github.com/bossqunt) on 2026-11-28T10:36:51Z. --- **Hardware:** i7-14700KF (8P + 12E, 28 threads), RTX 4080 16 GB (driver 616.64), Windows 11 26200. **Build:** `7b27902` + a local counting switch (below), plain release (`cargo build --release -p victory`). **Settings:** Series X profile, 2560x1440 output, DLSS Performance (1280x720 render), DLSS frame generation 2x, `VICTORY_INPLACE=1`. **Scene:** the same every run, from the same save: the two opening cutscenes, then the boat on the water collecting the drugs. **Profile:** `wpr -start CPU -filemode`, 48 s on the boat, middle 30 s analysed with `xperf -a dumper -stacktimeshifting` and the build's own PDB. ## Frame lines (last 2 minutes, means of the 5-second lines) | | Series S, 960x540 to 1080p | Series X, 1280x720 to 1440p | |---|---|---| | fps (real) | 26.9 | 19.4 | | ms/frame | 37.2 | 52.9 | | preparing | 23.3 | 27.4 | | card busy (card clock line) | ~80 % | ~79 % (~42 ms of a frame) | | card idle behind the submitting thread | 7.3 ms | 10.4 ms | At 1440p `queue::behind` reports "that thread worked 51.8 ms" of a 53 ms frame, and the title's threads wait 28.7 ms a frame at presents. ## The submitting thread (`queue::behind` → `Host::execute_parts` → `Host::submit`) On the CPU 77 % of the 30 s (23,013 samples at 1 kHz). Of its samples under `Host::submit`, by direct callee: | Callee | Share | |---|---| | `Host::card_before` | 16.7 % (of it: D3D12Core 35 %, `shadow::wide` 17 %, memcpy 15 %, `shadow::joined` 7 %) | | `Host::take_steps` | 15.0 % (`land::Pool::each` 27 %, `card_steps::plan` 14 %, D3D12Core 14 %, `card_steps::does_of` 13 %) | | `shadow::wide` (refresh jobs handed out, and the wait for them) | 12.9 % | | D3D12Core / driver | 12.6 % | | `watch::ask_once` | 9.5 % | | `host::stale_of` | 6.3 % | | `Batch::flush` / `fill` / `refresh_textures` / `copy_spans` / `update` | 9.9 % together | | `Host::submit` itself | 4.7 % | | `Shadow::nothing_new` | 2.2 % | About 23 % of the thread's samples end in the kernel. No callee is more than 17 %: the time is spread over the whole of the shared-memory work, so we read it as support for item 1 of "What is next" in `docs/findings.md` (one submission's work over two threads in a row). Roughly, the looking (write watch, `stale_of`, the refreshes and `wide`) and the sending (`card_before`, `take_steps`, D3D12) are about half each. ### What stands between the halves (from reading `Host::submit` at `7b27902`) We looked at what overlapping submission N's sending with N+1's looking would have to change; these are what we found, offered in case they are of use: 1. `card_before` takes the dirty ranges of every card copy at once (`shadow::card_dirty`), so N+1's refreshes would have to wait, or their ranges carry the number of the submission that made them, with N taking only those up to N. 2. The bytes N sends are taken out of the copies' CPU sides inside `card_before` (`send::take`, `VICTORY_SEND_OWN`). A refresh of N+1 into the same copy before that would be sent with N: the case `send.rs` describes. 3. `card_steps` and `late_blocked` / `stale_under_flights` for N+1 look at the flights in the air, and N is not one yet. `declared_writes(runs)` depends only on the lists, so N's ranges could be published as soon as it begins. 4. The order of `ExecuteCommandLists` and `Signal` on the one queue stays, if a single thread sends. ## The translating threads (`VICTORY_THIN`, 8 threads) Each is on the CPU about 46 % of the time (~3.7 cores in all); the log has 38,505 list calls a frame in 164.6 ms of their time (about 4.3 µs a call). 85 % of their samples are in `draw::State::bind` → `State::tables`, which goes to: | Under `State::tables` | Share | |---|---| | `draw::readable` | 21.1 % | | `descriptor::host::make_twinned` | 18.4 % | | `State::tables` itself | 14.1 % | | `HostHeap::keep` | 11.9 % | | D3D12Core | 8.1 % | | `HostHeap::constant_at` | 5.9 % | | `HostHeap::mirror` | 5.7 % | | `descriptor::view_at` | 4.9 % | These threads have room to spare, so this is not the frame's wall today. A cache of resolved tables whose slots have not changed would mostly give cores back (the 14700KF has 8 P-cores for the title, these eight and the submitting thread). ## Which way buffer bytes go (`VICTORY_TRAFFIC=1`, a local counting switch) A per-copy count of bytes up (title memory into a copy) and back (shader writes into title memory), 6.5 minutes of the same scene, Series S: about 30 MB up and 1.4 MB back a frame. - Copies whose bytes only ever went up: windows 34 % of the bytes up, card copies 14 %. - One copy, the 174 MB heap at `0x13c80000`, is 50 % of all bytes up and 23 % of the bytes back (45 times more up than back). - One 1 MB card copy is back only (16 % of the bytes back). `VICTORY_INPLACE=1` placed 82-83 windows (about 390 MB) and turned down about 1,100-1,260 as view memory. Window bytes up went from 10.5 to 6.8 MB a frame, but fps at the same draw counts was within about 1 fps. `VICTORY_SEND_BAR=1` on this PC: no difference beyond noise (26.4 vs 27.1 fps median, preparing 25.8 vs 26.1 ms). The counting switch is small (a per-copy counter at `Shadow::copy` / `take` / `take_landed` and at the six landing and merge functions, plus a CSV beside the log) and can be sent as a pull request if it is of use. ## Stalls near the second boat When the other boat comes near, fps falls to 10-14 for a few seconds: 0.5 settles a frame of about 90-100 ms each, all "title memory read … by a fill of upload memory", with the card at 93-94 % busy. They show up in runs with and without `VICTORY_INPLACE` and `VICTORY_SEND_BAR`. ## Logs GPU: RTX 4080 16 GB (driver 616.64). Windows 11 (build 26200). CPU: i7-14700KF. [issue-985-logs.zip](https://github.com/user-attachments/files/35545528/issue-985-logs.zip) ## Attachment Files - victory-nvidia-play-20261128-095901-38964.log: Series X, 1440p, the frame lines in the first table - victory-nvidia-play-20261128-101119-36808.log: the run the ETW profile was taken in - traffic-*.csv: VICTORY_TRAFFIC per-copy totals (Series S run, and the profiled run)
github-actions[bot] commented 2026-11-28 10:37:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-28T10:37:00Z.


Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7238011753 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/985#issuecomment-7238011753). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T10:37:00Z. --- Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
trustno1-coder commented 2026-11-29 19:47:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T19:47:59Z.


Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then.

If it still happens on the latest release, please open a new issue with the play log and crashes.log from that run. Thanks for reporting!

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7261564462 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/985#issuecomment-7261564462). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-29T19:47:59Z. --- Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then. If it still happens on the [latest release](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/latest), please open a new issue with the play log and crashes.log from that run. Thanks for reporting!
Sign in to join this conversation.
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA#985
No description provided.