[Profiling / 12GB VRAM] Breakdown of ~70ms SUBMIT BUSY on RTX 4070 Super + Ryzen 7 5700X (commit 63b902f) #833

Closed
opened 2026-11-28 07:31:54 +00:00 by Andrus5771 · 6 comments
Andrus5771 commented 2026-11-28 07:31:54 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Andrus5771 on 2026-11-28T07:31:54Z.


Hi! First of all, huge thanks for 63b902f — the new default memory stack completely resolved the 32GB RAM saturation, black texture patches, and lighting artifacts in Series X mode on a 12GB VRAM card (VRAM now stays comfortably at 7.5 / 11.0 GB, RAM at 23.2 GB, running 1440p + DLSS Quality + 2x Frame Gen at ~11 native / 22 shown FPS).

Since GPU busy time (~54 ms) is lower than SUBMIT BUSY (~70–75 ms), we ran VICTORY_LOG=info profiling on an 8-core CPU to see what dominates the submitting thread per frame (~9,500 draws) and tested a couple of tuning hypotheses. Sharing the exact breakdown in case it helps optimize the CPU submission path further:

Test Setup

  • Commit: 63b902f (Series S picture row in F1 down to 540p, memory stack on by default)
  • Hardware: Ryzen 7 5700X (8C/16T), 32GB DDR4, RTX 4070 Super 12GB (PCIe 3.0 x16), Windows 11
  • Settings: Series X (2560x1440), DLSS Quality, Frame Gen 2X, VICTORY_SKIP_BIG_COPY_BACKS=1, VICTORY_WATER_LIGHT=0

1. Baseline preparing per frame Breakdown (Jason's house exterior, ~9,500 draws)

preparing per frame, the submitting thread: 68.3–72.3 ms in its submissions:
- 4.6–5.1 ms: asking the write watch (0.6–0.8 ms finding what to ask)
- 9.1–12.5 ms: putting the title's bytes under flights' writes
- 22.1–23.0 ms: in the lists' steps (refreshes 13.5 ms in 61 flushes of 6603, 5578 known to copy nothing, 5811 on several threads)
- 10.0–15.0 ms: for copies in the card's memory
- 2.3–2.4 ms: sending the lists (VICTORY_LIGHT_REFRESH is on)
- 8.1–12.4 ms: planning steps done on the card (`card_steps`)
- 1.1–3.3 ms: the heaps' records and what is swept
- 11.6–18.6 ms: after the sending (the flight noted, landed lists reset and given back)

2. What We Tested & Findings

  1. Raising VICTORY_LATE_WAIT_LISTS=1024 (default 256):
    • Result: Cut after the sending time down from 11.6–18.6 ms to 1.2–4.4 ms by avoiding premature relay_wait(WHY_MOST) stalls on high-draw-count frames.
  2. Raising FEW threshold from 256 to 65536 in refresh_front / flush_all:
    • Result (Regression): Single-threaded nothing_new retention across ~6,600–8,000 ranges increased refreshes time from 13.5 ms to 19.2–28.1 ms. Your default FEW = 256 parallel threshold is definitely faster on 8 cores.
  3. Setting VICTORY_PASSES_HOT=5000:
    • Result (Regression): Spin-waiting worker threads starved the background relay thread on an 8-core CPU, increasing waiting for the submission lock from 0–2.3 ms up to 8.8–21.1 ms.

Summary / Bottlenecks Identified

On 8-core CPUs, the main remaining CPU bottlenecks per frame are:

  1. in the lists' steps (~22 ms, specifically ~60 flushes checking ~6,600 ranges where ~85% are nothing_new)
  2. copies in the card's memory (~13–15 ms)
  3. putting the title's bytes under flights' writes (~10–12 ms)
  4. planning steps done on the card (~10–12 ms)

Also, setting VICTORY_LATE_WAIT_LISTS=1024 as default (or scaling it when 12GB+ VRAM / 32GB+ RAM is present) might be a free win for reducing after the sending stalls. Thanks again for the great work!

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6661188692 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/833). Originally posted by [Andrus5771](https://github.com/Andrus5771) on 2026-11-28T07:31:54Z. --- Hi! First of all, huge thanks for `63b902f` — the new default memory stack completely resolved the 32GB RAM saturation, black texture patches, and lighting artifacts in Series X mode on a 12GB VRAM card (VRAM now stays comfortably at `7.5 / 11.0 GB`, RAM at `23.2 GB`, running `1440p + DLSS Quality + 2x Frame Gen` at ~11 native / 22 shown FPS). Since GPU busy time (~54 ms) is lower than `SUBMIT BUSY` (~70–75 ms), we ran `VICTORY_LOG=info` profiling on an 8-core CPU to see what dominates the submitting thread per frame (~9,500 draws) and tested a couple of tuning hypotheses. Sharing the exact breakdown in case it helps optimize the CPU submission path further: ### Test Setup - **Commit:** `63b902f` (`Series S picture row in F1 down to 540p, memory stack on by default`) - **Hardware:** Ryzen 7 5700X (8C/16T), 32GB DDR4, RTX 4070 Super 12GB (PCIe 3.0 x16), Windows 11 - **Settings:** Series X (`2560x1440`), DLSS Quality, Frame Gen 2X, `VICTORY_SKIP_BIG_COPY_BACKS=1`, `VICTORY_WATER_LIGHT=0` ### 1. Baseline `preparing per frame` Breakdown (Jason's house exterior, ~9,500 draws) ```text preparing per frame, the submitting thread: 68.3–72.3 ms in its submissions: - 4.6–5.1 ms: asking the write watch (0.6–0.8 ms finding what to ask) - 9.1–12.5 ms: putting the title's bytes under flights' writes - 22.1–23.0 ms: in the lists' steps (refreshes 13.5 ms in 61 flushes of 6603, 5578 known to copy nothing, 5811 on several threads) - 10.0–15.0 ms: for copies in the card's memory - 2.3–2.4 ms: sending the lists (VICTORY_LIGHT_REFRESH is on) - 8.1–12.4 ms: planning steps done on the card (`card_steps`) - 1.1–3.3 ms: the heaps' records and what is swept - 11.6–18.6 ms: after the sending (the flight noted, landed lists reset and given back) ``` ### 2. What We Tested & Findings 1. **Raising `VICTORY_LATE_WAIT_LISTS=1024` (default `256`):** - **Result:** Cut `after the sending` time down from **11.6–18.6 ms** to **1.2–4.4 ms** by avoiding premature `relay_wait(WHY_MOST)` stalls on high-draw-count frames. 2. **Raising `FEW` threshold from `256` to `65536` in `refresh_front` / `flush_all`:** - **Result (Regression):** Single-threaded `nothing_new` retention across ~6,600–8,000 ranges increased `refreshes` time from **13.5 ms** to **19.2–28.1 ms**. Your default `FEW = 256` parallel threshold is definitely faster on 8 cores. 3. **Setting `VICTORY_PASSES_HOT=5000`:** - **Result (Regression):** Spin-waiting worker threads starved the background `relay` thread on an 8-core CPU, increasing `waiting for the submission lock` from **0–2.3 ms** up to **8.8–21.1 ms**. ### Summary / Bottlenecks Identified On 8-core CPUs, the main remaining CPU bottlenecks per frame are: 1. `in the lists' steps` (~22 ms, specifically ~60 flushes checking ~6,600 ranges where ~85% are `nothing_new`) 2. `copies in the card's memory` (~13–15 ms) 3. `putting the title's bytes under flights' writes` (~10–12 ms) 4. `planning steps done on the card` (~10–12 ms) Also, setting `VICTORY_LATE_WAIT_LISTS=1024` as default (or scaling it when `12GB+` VRAM / `32GB+` RAM is present) might be a free win for reducing `after the sending` stalls. Thanks again for the great work!
github-actions[bot] commented 2026-11-28 07:32:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-28T07:32:03Z.


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:7236000435 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/833#issuecomment-7236000435). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T07:32:03Z. --- 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)
Andrus5771 commented 2026-11-28 07:40:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Andrus5771 on 2026-11-28T07:40:43Z.


Attached the VICTORY_LOG=info play logs from both runs (victory-nvidia-20261128-110435.log for baseline and victory-nvidia-20261128-112418.log with VICTORY_LATE_WAIT_LISTS=1024).

This is a performance profiling report (no crash occurred, so there are no crash.log files).

  • GPU: NVIDIA GeForce RTX 4070 Super (12 GB)
  • OS: Windows 11

victory-nvidia-20261128-111032.log
victory-nvidia-20261128-112418.log

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7236093155 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/833#issuecomment-7236093155). Originally posted by [Andrus5771](https://github.com/Andrus5771) on 2026-11-28T07:40:43Z. --- Attached the `VICTORY_LOG=info` play logs from both runs (`victory-nvidia-20261128-110435.log` for baseline and `victory-nvidia-20261128-112418.log` with `VICTORY_LATE_WAIT_LISTS=1024`). This is a performance profiling report (no crash occurred, so there are no `crash.log` files). - **GPU:** NVIDIA GeForce RTX 4070 Super (12 GB) - **OS:** Windows 11 [victory-nvidia-20261128-111032.log](https://github.com/user-attachments/files/35542115/victory-nvidia-20261128-111032.log) [victory-nvidia-20261128-112418.log](https://github.com/user-attachments/files/35542116/victory-nvidia-20261128-112418.log)
lcespirit commented 2026-11-28 18:05:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by lcespirit on 2026-11-28T18:05:07Z.


24-core data point (RTX 5090 Laptop + Ultra 9 275HX)
Adding a high-core / high-bandwidth reference to this thread, since most of the numbers here are 8-16 thread machines.
Setup: RTX 5090 Laptop 24 GB, Core Ultra 9 275HX (24 threads), 64 GB, Win11 26200, driver 621.40, game dump on NVMe, v2026.11.28.03, Series S picture 1280x720 + DLSS quality, frame gen 2X, VICTORY_MAP_THREADS=8.

  1. VICTORY_LATE_WAIT_LISTS=1024 does nothing here — "sending the lists" is already 1.2 ms
preparing per frame, the submitting thread: 43.9 ms in its submissions:
  3.8 asking the write watch, 2.1 putting the title's bytes under flights' writes,
  22.6 in the lists' steps (refreshes 14.8 in 43 flushes of 6447,
  5345 of them known to copy nothing, 5565 on several threads),
  5.8 for copies in the card's memory,
  1.2 sending the lists (VICTORY_LIGHT_REFRESH is on)

So the 11-18 ms "after the sending" reported here seems specific to the lower-bandwidth/8-core setups. On this machine the sending is not the problem — the flush count is.
2. THIN_THREADS / UNDER_THREADS / LAND_THREADS oversubscribe a 24-thread CPU
Values from a community launcher (THIN_THREADS=12, UNDER_THREADS=8, LAND_THREADS=6, PLACED_ORDER=1):
config draws fps per-draw
defaults + MAP_THREADS=8 ~7,300 21-23 ~6.0 µs
THIN 12 / UNDER 8 / LAND 6 ~8,000 18-21 ~8.4 µs
Same spot, pools removed: 21-23 fps; pools present: 18-21 fps. 12+8+6 worker threads on top of the title's own threads look like contention rather than parallelism here. Would it make sense for those defaults (or the menu's) to scale with the core count instead of a fixed number?
3. The flushes, not the pixels
The lists' steps are dominated by refreshes: 6,447 flushes per frame in the sample above (9,078 in a heavier spot), of which 83% are known to copy nothing (5,345 / 6,447). That is ~14.8 ms of the 22.6 ms every frame.
Also worth noting: dropping the internal picture from 1280x720 to 960x540 did not lower GPU time here (29.6 ms → 35.1 ms), which fits the GPU time being copies/relay rather than shading.
Happy to provide full info logs for any of these runs if useful.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7243517195 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/833#issuecomment-7243517195). Originally posted by [lcespirit](https://github.com/lcespirit) on 2026-11-28T18:05:07Z. --- 24-core data point (RTX 5090 Laptop + Ultra 9 275HX) Adding a high-core / high-bandwidth reference to this thread, since most of the numbers here are 8-16 thread machines. Setup: RTX 5090 Laptop 24 GB, Core Ultra 9 275HX (24 threads), 64 GB, Win11 26200, driver 621.40, game dump on NVMe, `v2026.11.28.03`, Series S picture 1280x720 + DLSS quality, frame gen 2X, `VICTORY_MAP_THREADS=8`. 1. `VICTORY_LATE_WAIT_LISTS=1024` does nothing here — "sending the lists" is already 1.2 ms ``` preparing per frame, the submitting thread: 43.9 ms in its submissions: 3.8 asking the write watch, 2.1 putting the title's bytes under flights' writes, 22.6 in the lists' steps (refreshes 14.8 in 43 flushes of 6447, 5345 of them known to copy nothing, 5565 on several threads), 5.8 for copies in the card's memory, 1.2 sending the lists (VICTORY_LIGHT_REFRESH is on) ``` So the 11-18 ms "after the sending" reported here seems specific to the lower-bandwidth/8-core setups. On this machine the sending is not the problem — the flush count is. 2. `THIN_THREADS` / `UNDER_THREADS` / `LAND_THREADS` oversubscribe a 24-thread CPU Values from a community launcher (`THIN_THREADS=12`, `UNDER_THREADS=8`, `LAND_THREADS=6`, `PLACED_ORDER=1`): config draws fps per-draw defaults + `MAP_THREADS=8` ~7,300 21-23 ~6.0 µs THIN 12 / UNDER 8 / LAND 6 ~8,000 18-21 ~8.4 µs Same spot, pools removed: 21-23 fps; pools present: 18-21 fps. 12+8+6 worker threads on top of the title's own threads look like contention rather than parallelism here. Would it make sense for those defaults (or the menu's) to scale with the core count instead of a fixed number? 3. The flushes, not the pixels The lists' steps are dominated by refreshes: 6,447 flushes per frame in the sample above (9,078 in a heavier spot), of which 83% are `known to copy nothing` (5,345 / 6,447). That is ~14.8 ms of the 22.6 ms every frame. Also worth noting: dropping the internal picture from 1280x720 to 960x540 did not lower GPU time here (29.6 ms → 35.1 ms), which fits the GPU time being copies/relay rather than shading. Happy to provide full `info` logs for any of these runs if useful.
lcespirit commented 2026-11-28 18:06:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by lcespirit on 2026-11-28T18:06:41Z.


The single biggest waste here: 5,345 of 6,447 refreshes per frame are
"known to copy nothing" but still cost ~14.8 ms of the 22.6 ms lists' steps
on 24 threads. If those could be skipped earlier in the path, that looks like
the largest single win for high-core machines.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7243538187 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/833#issuecomment-7243538187). Originally posted by [lcespirit](https://github.com/lcespirit) on 2026-11-28T18:06:41Z. --- The single biggest waste here: 5,345 of 6,447 refreshes per frame are "known to copy nothing" but still cost ~14.8 ms of the 22.6 ms lists' steps on 24 threads. If those could be skipped earlier in the path, that looks like the largest single win for high-core machines.
Andrus5771 commented 2026-11-29 16:06:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Andrus5771 on 2026-11-29T16:06:28Z.


Quick update after testing v2026.11.29.01 (829188e9) on the same spot (Jason's house, Series X, 2560x1440, DLSS FG 2X):

  1. DLSS Quality (1706x960 -> 2560x1440): DROPPED is down to 4, and VRAM no longer overflows (9.4 / 10.5 GB, RAM 28.5 GB), though GPU BUSY increased from ~55 ms (on 63b902f) to 72.2 ms (9.3 native / 18.7 FG FPS, 107.1 ms/frame).
  2. Bug on DLSS Performance (1280x720 -> 2560x1440): Following the WHAT LIMITS FPS suggestion to lower DLSS to Performance breaks shader conversion in v2026.11.29.01 — 343 DRAWS SKIPPED, window glass/reflections render corrupted rainbow pixel blocks even after 5+ minutes, and FPS drops to 5.2 native / 10.4 FG (193.2 ms/frame).
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7258622830 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/833#issuecomment-7258622830). Originally posted by [Andrus5771](https://github.com/Andrus5771) on 2026-11-29T16:06:28Z. --- Quick update after testing `v2026.11.29.01` (`829188e9`) on the same spot (Jason's house, `Series X`, `2560x1440`, `DLSS FG 2X`): 1. **DLSS Quality (`1706x960 -> 2560x1440`):** `DROPPED` is down to `4`, and VRAM no longer overflows (`9.4 / 10.5 GB`, `RAM 28.5 GB`), though `GPU BUSY` increased from ~55 ms (on `63b902f`) to `72.2 ms` (`9.3` native / `18.7` FG FPS, `107.1 ms/frame`). 2. **Bug on `DLSS Performance` (`1280x720 -> 2560x1440`):** Following the `WHAT LIMITS FPS` suggestion to lower DLSS to `Performance` breaks shader conversion in `v2026.11.29.01` — `343 DRAWS SKIPPED`, window glass/reflections render corrupted rainbow pixel blocks even after 5+ minutes, and FPS drops to `5.2` native / `10.4` FG (`193.2 ms/frame`).
trustno1-coder commented 2026-11-29 23:07:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T23:07:42Z.


Closing this one: it was reported on v2026.11.28.02 or earlier, and a lot has changed since (crash fixes, memory, shaders, warm-up and speed).

If it still happens on v2026.11.29.05, please open a new issue with the newest play log from %LOCALAPPDATA%\victory\logs\ and crashes.log, and we'll look at it there.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7264218044 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/833#issuecomment-7264218044). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-29T23:07:42Z. --- Closing this one: it was reported on v2026.11.28.02 or earlier, and a lot has changed since (crash fixes, memory, shaders, warm-up and speed). If it still happens on [v2026.11.29.05](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.29.05), please open a new issue with the newest play log from `%LOCALAPPDATA%\victory\logs\` and `crashes.log`, and we'll look at it there.
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#833
No description provided.