Where the card's time goes on an RTX 5080: a flat profile of small serial passes, not translator overhead (per-shader GPU time + census of all 26,180 programs) #4917

Open
opened 2026-12-01 13:54:48 +00:00 by github-bot · 4 comments
Owner

@⁠mstrmoos on GitHub · 2026-12-01 13:53 UTC · original

Summary: on an RTX 5080 the card is the limit, but it is barely used: shader cores execute about 7 % of their peak instructions. I measured where the card's time goes, counted what the translator emits for every shader in the game, and compared the two. The time is spread thinly over hundreds of shaders, the translated code shows no dominant overhead, and the low use comes from the title's many small passes running one after another. I'm writing it up so others don't spend days on the same dead ends, and so the ideas that are left are ranked by what they can be worth.

Setup

  • PC: RTX 5080 16 GB, Ryzen 7 9800X3D, Windows 11.
  • Profile: Series X, 2560x1440 output, DLSS Balanced (1484x835 inside), frame generation off, ray tracing off.
  • Build: my play branch (the code of #4836, on main 0c8c2092 merged up to 5fabb46e), diagnostics build.
  • Scene: standing still on a pier for 60-90 s after a warm-up. Water fills the left of the frame, people sit at a terrace behind, foliage and a far shore are in the distance. About 4,800-5,100 draws a frame with the title's LOD scale and population held at 0.25 (VICTORY_IMAGE_HOLD); 8,700 at the title's own values.

1. Card time per command (VICTORY_GPU_TIME=1, VICTORY_GPU_TIME_TOP=40)

  • Title work on the card: 16.9-21.1 ms a frame.
  • By kind: indirect 43 %, dispatch 40 %, the layer's own work 6 %, draw 5 %, mesh 5 %.
  • The profile is flat. The single most expensive command (compute 7b2c3c1db2298f44, one dispatch) is 0.82 ms a frame. The top 40 together are 48 % of the card's time. There is no hot shader to fix.

2. How busy the card really is (Nsight GPU Trace of a replayed frame)

  • SM instructions executed: 6.7 % of peak.
  • 78 % of the busy time runs at 0-3 warps per SM.
  • Registers are not the limit: about 87 per thread on compute, which would allow about 23 warps; about 5 are resident.
  • The dominant stall is long scoreboard (memory): global loads about 528 cycles, texture about 489.
  • Only about 0.4 % of texture sectors come from system memory.
  • 3D work was active 32 % of the time and compute 34 %.

3. What the translator emits (VICTORY_SHADER_CENSUS, all 26,180 programs)

victory translate <game folder> with VICTORY_SHADER_CENSUS=<file> writes one line per program. Overall:

  • Guards: 792,149 guarded of 32.6 million vector instructions (2.4 %).
  • Descriptors: 2.6 million loaded from the heap, 128 k built, 175 k constant. No console sharp (T#/V#/S#) is read from memory: a texture sample is one descriptor fetch by the driver (ResourceDescriptorHeap[i]).
  • Memory access: wide buffer loads stay wide; ordinary views carry no bounds check (only root views over title memory with OOB_SELECT do); LDS is a real groupshared array.
  • Exec mask: not emulated per instruction. Lane masks become per-lane booleans, and only writes that can't be proved get a guard.

Joined with the 40 most expensive commands, nothing stands out:

shader card ms a frame DXIL / console instructions guard selects loop-counter instructions handles texture + buffer reads
7b2c3c1d (compute) 0.82 6,779 / 1,916 465 45 35 93
915ed81e (compute) 0.59 8,524 / 3,286 40 24 88 124
764ca63d (compute) 0.29 22,143 / 7,139 8 12 64 859
3a79195f (compute) 0.21 5,596 / 2,267 0 0 79 146
be6ce5d8 (compute) 0.14 23,634 / 11,622 468 6 169 411
17af15c4 (compute) 0.14 7,272 / 5,167 19 194 111 309
  • Loop counters are zero in most of the top 40, and under 3 % of the instructions where they appear.
  • Guard selects are notable in only two of the 40.
  • Handles are proportionate to the reads. There are no storms of repeated descriptor fetches.
  • DXIL and console instruction counts aren't comparable one for one; no single kind of instruction stands out.

4. Ceilings already measured

  • Barriers: removing every barrier in a captured frame (replay) is worth about 2.5 ms at most. VICTORY_NARROW_BARRIERS=1 is slower on NVIDIA.

  • An async compute queue: the title's compute-queue lists are 1.8-1.9 ms of card time a frame (9 submissions, 13 waits), so that is the most it could take.

  • Merging draws: an indirect record plus a table change costs about 6 ns a draw, so there is nothing to win.

  • Resolution: see below.

  • Resolution: card time barely follows the pixel count. Same scene and switches, 90-120 s each, frame generation off:

DLSS mode inside pixels frame (median)
Balanced 1484x835 1.0x 25.9 ms
Quality about 1707x960 1.3x 28.9 ms
DLAA 2560x1440 3.0x 31.5 ms

Three times the pixels costs 22 % more time. Performance mode (1280x720) was no faster than Balanced in an earlier run (31.7 ms, with the card's own time unchanged at 24.6 ms). Most of the frame is fixed cost per pass, not per pixel. A side effect for players on big cards: DLAA or Quality costs little more than Balanced.

Conclusion

The card isn't held back by bad translated code. It's held back by the shape of the title's frame: many small dispatches and draws, each too small to fill 84 SMs, run one after another with memory latency in each. On console hardware that shape fits. On a much wider PC card it leaves most of the card idle.

What's left, ranked by what it might be worth

Each of these is small: about 0.1-0.5 ms, perhaps 1-2 ms together. All are translator changes, so they're part of the shader cache key and need a fresh translation to measure.

  1. Resource reads reused across the dominator tree in modules that write no resource memory. Today read_mem is cleared at every block (crates/victory-shader/src/emit/bitcode/opt.rs:1824). I've written this as optimiser bit 512 (LOADS_DOM, off by default, VICTORY_SHADER_OPT=959).
    • Census over all programs: buffer reads -1.26 %, texture reads -0.21 %, instructions -0.12 %.
    • Among the top 40 it trims 8-15 % of the reads of several shaders (1cd9bc63 149 to 127, b3756505 266 to 244, c5d4ff74 403 to 379).
    • The in-game measurement will follow here.
  2. Descriptor handles made at shader entry where the index depends only on entry values (crates/victory-shader/src/emit/lower.rs:8641, bitcode/opt.rs:2469), so their fetches start together. Check SASS first: the driver may already hoist them.
  3. Wave64 compute with console lanes: skip the entry "ticket" for 1-D groups (lower.rs:4692), and the DPP ballot in blocks every lane runs (lower.rs:6019).
    • 6.6 ms of the top 40's 8.6 ms is wave64 programs, but few use the split-halves path (barrier counts are low), so this is small.
  4. Bindless s_buffer_load through the raw twin (lower.rs:7890-7960, 9144-9187): removes a dependent stride-table load and two branches. Only with VICTORY_PORT_CBV=1, which needs renderer port 1 (VICTORY_PORT_CONSTANTS=1), which is off in most setups because the card then reads title memory over the bus.
  5. Loop counters on constant-trip loops (lower.rs:2574-2587): the smallest. They're zero in most top shaders, and under 3 % of the instructions where they appear.

Larger, structural, and not investigated: running the title's independent passes side by side, beyond what removing barriers already allows.

I'll post measurements here as I go.

**@⁠mstrmoos** on GitHub · 2026-12-01 13:53 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4916) **Summary:** on an RTX 5080 the card is the limit, but it is barely used: shader cores execute about 7 % of their peak instructions. I measured where the card's time goes, counted what the translator emits for every shader in the game, and compared the two. The time is spread thinly over hundreds of shaders, the translated code shows no dominant overhead, and the low use comes from the title's many small passes running one after another. I'm writing it up so others don't spend days on the same dead ends, and so the ideas that are left are ranked by what they can be worth. ## Setup - **PC:** RTX 5080 16 GB, Ryzen 7 9800X3D, Windows 11. - **Profile:** Series X, 2560x1440 output, DLSS Balanced (1484x835 inside), frame generation off, ray tracing off. - **Build:** my play branch (the code of #4836, on `main` 0c8c2092 merged up to 5fabb46e), diagnostics build. - **Scene:** standing still on a pier for 60-90 s after a warm-up. Water fills the left of the frame, people sit at a terrace behind, foliage and a far shore are in the distance. About 4,800-5,100 draws a frame with the title's LOD scale and population held at 0.25 (`VICTORY_IMAGE_HOLD`); 8,700 at the title's own values. ## 1. Card time per command (`VICTORY_GPU_TIME=1`, `VICTORY_GPU_TIME_TOP=40`) - **Title work on the card:** 16.9-21.1 ms a frame. - **By kind:** indirect 43 %, dispatch 40 %, the layer's own work 6 %, draw 5 %, mesh 5 %. - **The profile is flat.** The single most expensive command (compute `7b2c3c1db2298f44`, one dispatch) is 0.82 ms a frame. The top 40 together are 48 % of the card's time. There is no hot shader to fix. ## 2. How busy the card really is (Nsight GPU Trace of a replayed frame) - SM instructions executed: **6.7 % of peak**. - 78 % of the busy time runs at **0-3 warps per SM**. - Registers are not the limit: about 87 per thread on compute, which would allow about 23 warps; about 5 are resident. - The dominant stall is long scoreboard (memory): global loads about 528 cycles, texture about 489. - Only about 0.4 % of texture sectors come from system memory. - 3D work was active 32 % of the time and compute 34 %. ## 3. What the translator emits (`VICTORY_SHADER_CENSUS`, all 26,180 programs) `victory translate <game folder>` with `VICTORY_SHADER_CENSUS=<file>` writes one line per program. Overall: - **Guards:** 792,149 guarded of 32.6 million vector instructions (2.4 %). - **Descriptors:** 2.6 million loaded from the heap, 128 k built, 175 k constant. No console sharp (T#/V#/S#) is read from memory: a texture sample is one descriptor fetch by the driver (`ResourceDescriptorHeap[i]`). - **Memory access:** wide buffer loads stay wide; ordinary views carry no bounds check (only root views over title memory with OOB_SELECT do); LDS is a real `groupshared` array. - **Exec mask:** not emulated per instruction. Lane masks become per-lane booleans, and only writes that can't be proved get a guard. Joined with the 40 most expensive commands, nothing stands out: | shader | card ms a frame | DXIL / console instructions | guard selects | loop-counter instructions | handles | texture + buffer reads | | --- | --- | --- | --- | --- | --- | --- | | `7b2c3c1d` (compute) | 0.82 | 6,779 / 1,916 | 465 | 45 | 35 | 93 | | `915ed81e` (compute) | 0.59 | 8,524 / 3,286 | 40 | 24 | 88 | 124 | | `764ca63d` (compute) | 0.29 | 22,143 / 7,139 | 8 | 12 | 64 | 859 | | `3a79195f` (compute) | 0.21 | 5,596 / 2,267 | 0 | 0 | 79 | 146 | | `be6ce5d8` (compute) | 0.14 | 23,634 / 11,622 | 468 | 6 | 169 | 411 | | `17af15c4` (compute) | 0.14 | 7,272 / 5,167 | 19 | 194 | 111 | 309 | - Loop counters are zero in most of the top 40, and under 3 % of the instructions where they appear. - Guard selects are notable in only two of the 40. - Handles are proportionate to the reads. There are no storms of repeated descriptor fetches. - DXIL and console instruction counts aren't comparable one for one; no single kind of instruction stands out. ## 4. Ceilings already measured - **Barriers:** removing every barrier in a captured frame (replay) is worth about 2.5 ms at most. `VICTORY_NARROW_BARRIERS=1` is slower on NVIDIA. - **An async compute queue:** the title's compute-queue lists are 1.8-1.9 ms of card time a frame (9 submissions, 13 waits), so that is the most it could take. - **Merging draws:** an indirect record plus a table change costs about 6 ns a draw, so there is nothing to win. - **Resolution:** see below. - **Resolution: card time barely follows the pixel count.** Same scene and switches, 90-120 s each, frame generation off: | DLSS mode | inside | pixels | frame (median) | | --- | --- | --- | --- | | Balanced | 1484x835 | 1.0x | 25.9 ms | | Quality | about 1707x960 | 1.3x | 28.9 ms | | DLAA | 2560x1440 | 3.0x | 31.5 ms | Three times the pixels costs 22 % more time. Performance mode (1280x720) was no faster than Balanced in an earlier run (31.7 ms, with the card's own time unchanged at 24.6 ms). Most of the frame is fixed cost per pass, not per pixel. A side effect for players on big cards: DLAA or Quality costs little more than Balanced. ## Conclusion The card isn't held back by bad translated code. It's held back by the shape of the title's frame: many small dispatches and draws, each too small to fill 84 SMs, run one after another with memory latency in each. On console hardware that shape fits. On a much wider PC card it leaves most of the card idle. ## What's left, ranked by what it might be worth Each of these is small: about 0.1-0.5 ms, perhaps 1-2 ms together. All are translator changes, so they're part of the shader cache key and need a fresh translation to measure. 1. **Resource reads reused across the dominator tree in modules that write no resource memory.** Today `read_mem` is cleared at every block (`crates/victory-shader/src/emit/bitcode/opt.rs:1824`). I've written this as optimiser bit 512 (`LOADS_DOM`, off by default, `VICTORY_SHADER_OPT=959`). - Census over all programs: buffer reads -1.26 %, texture reads -0.21 %, instructions -0.12 %. - Among the top 40 it trims 8-15 % of the reads of several shaders (`1cd9bc63` 149 to 127, `b3756505` 266 to 244, `c5d4ff74` 403 to 379). - The in-game measurement will follow here. 2. **Descriptor handles made at shader entry** where the index depends only on entry values (`crates/victory-shader/src/emit/lower.rs:8641`, `bitcode/opt.rs:2469`), so their fetches start together. Check SASS first: the driver may already hoist them. 3. **Wave64 compute with console lanes:** skip the entry "ticket" for 1-D groups (`lower.rs:4692`), and the DPP ballot in blocks every lane runs (`lower.rs:6019`). - 6.6 ms of the top 40's 8.6 ms is wave64 programs, but few use the split-halves path (barrier counts are low), so this is small. 4. **Bindless `s_buffer_load` through the raw twin** (`lower.rs:7890-7960`, `9144-9187`): removes a dependent stride-table load and two branches. Only with `VICTORY_PORT_CBV=1`, which needs renderer port 1 (`VICTORY_PORT_CONSTANTS=1`), which is off in most setups because the card then reads title memory over the bus. 5. **Loop counters on constant-trip loops** (`lower.rs:2574-2587`): the smallest. They're zero in most top shaders, and under 3 % of the instructions where they appear. Larger, structural, and not investigated: running the title's independent passes side by side, beyond what removing barriers already allows. I'll post measurements here as I go.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 13:54:48 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-12-01 13:53 UTC · original

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 you have and which Windows version (10 or 11).

If this issue needs logs and none are posted here within 12 hours, it will be closed. Add them by editing your post or in a comment.

**@⁠github-actions[bot]** on GitHub · 2026-12-01 13:53 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4916#issuecomment-7313345804) 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 you have and which Windows version (10 or 11). **If this issue needs logs and none are posted here within 12 hours, it will be closed.** Add them by editing your post or in a comment.
Author
Owner

@⁠mstrmoos on GitHub · 2026-12-01 14:02 UTC · original

First item measured: resource reads reused across the dominator tree in programs that write no resource memory. It's optimiser bit 512 (LOADS_DOM) and off by default; VICTORY_SHADER_OPT=959 turns it on.

Same pier scene, the same switches in both runs, 90 s each, after a warm-up run to translate the shaders:

frame (median) p95 p99 frames over 50 ms
off 26.7 ms 33.5 37.7 4
on (VICTORY_SHADER_OPT=959) 26.3 ms 34.7 38.5 1

That's about 1.5 % on the median, inside what I see between runs of the same build. The census predicted this: the change removes 1.3 % of buffer reads in total, and the card's memory waits aren't mostly repeated reads. I'm keeping it on my branch as an opt-in switch. I'm not opening a PR for it unless someone sees more on another card.

**@⁠mstrmoos** on GitHub · 2026-12-01 14:02 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4916#issuecomment-7313597959) First item measured: resource reads reused across the dominator tree in programs that write no resource memory. It's optimiser bit 512 (`LOADS_DOM`) and off by default; `VICTORY_SHADER_OPT=959` turns it on. Same pier scene, the same switches in both runs, 90 s each, after a warm-up run to translate the shaders: | | frame (median) | p95 | p99 | frames over 50 ms | | --- | --- | --- | --- | --- | | off | 26.7 ms | 33.5 | 37.7 | 4 | | on (`VICTORY_SHADER_OPT=959`) | 26.3 ms | 34.7 | 38.5 | 1 | That's about 1.5 % on the median, inside what I see between runs of the same build. The census predicted this: the change removes 1.3 % of buffer reads in total, and the card's memory waits aren't mostly repeated reads. I'm keeping it on my branch as an opt-in switch. I'm not opening a PR for it unless someone sees more on another card.
Author
Owner

@⁠HQasper on GitHub · 2026-12-01 14:13 UTC · original

7b2c3c1db2298f44's cost comes from #3780's gray stand-ins, not from the program's own work. On our RTX 5090 it is about 1.1 ms a frame since v2026.11.30.01 and 0.01 ms before it, and VICTORY_NEUTRAL_ALL_KINDS=0 gives that time back.

Setup: RTX 5090 (32 GB), driver 621.24, Windows 11, 2560x1440 output, DLSS Quality, the opening from one save, ray tracing off unless said. The fps and card-meter runs are release builds of our branch (upstream 84bd61e2, v2026.11.30.02, plus local changes of ours); the bisect builds are upstream's own commits.

  • Per-command timing (diagnostics builds, VICTORY_GPU_TIMING=1): 7b2c3c1db2298f44 (one 14x10x1 dispatch) is 0.00-0.01 ms a frame through a whole run on a build on 41adb551, and 1.11-1.12 ms a frame through the steady part of every run on builds on c71899d9 (v2026.11.30.01) and 84bd61e2, with ray tracing on and off. The cost is the same in every frame.
  • Bisect over the 227 first-parent commits 41adb551..c71899d9 (release builds, VICTORY_SCRATCH_WB=0 so that #2174's table placement is out of the way; measured by the card meter's list kind [compute 00e6aef268b1ef81] / [compute 03e3e26783a5799b], which holds this dispatch, in the still scene at the end of a 150 s run): 41adb551 1.22 ms, c71899d9 2.34 ms; then 6b061883 1.65, 8808916f 1.24, baaace8b 1.24, 0b8719d3 2.35. That leaves the 14 commits 05e2e1b4..0b8719d3, with #3780 (3496e742) among them. Each build logs once when it makes a gray stand-in of a kind: baaace8b made none, while 0b8719d3, c71899d9 and every 84bd61e2-based run made them for Line and Cube views (and Volume in a capture run).
  • The switch (our branch on 84bd61e2, release, 3 runs each, interleaved): with VICTORY_NEUTRAL_ALL_KINDS=0 that list kind is 1.25-1.27 ms in the still scene against 2.35-2.37 ms, the title's lists take 13.5-13.6 ms of the card a frame against 14.6-14.7 ms, and the steady frame rate is 50.8, 50.9, 50.9 fps against 50.2, 50.3.
  • Not the 1D stand-ins: a build that keeps a null view for 1D views and #3780's stand-in for 3D and cube views (4 runs, one a lead-in, against 3) still has the full cost (2.35-2.39 ms in that list kind). So the stand-in it reads is a volume's or a cube's. We did not find out which of the two.
  • Picture: diagnostics builds with frame capture, the same build with and without VICTORY_NEUTRAL_ALL_KINDS=0, frames at the same count after the world's first frame: in the scene we compared (the cell, 3,000 frames in), the two differ only where things move (4.7-9.3 per channel against 1.2-2.1 within one run). No black patch in that scene. One scene only, which does not show where #3780's stand-ins help.

How we read it: where a volume or cube texture is not there yet, the program reads a gray texel instead of zeros, and its loops run to their cap (its translation has 13 loops capped at 4,096 iterations). That would fit both the 0.82 ms on your RTX 5080 and a cost that is the same in every frame.

Not done: other cards and other scenes; which kind of stand-in it is; whether a narrower fix (keeping the gray stand-in for materials but not for this program's slot) is possible. We use VICTORY_NEUTRAL_ALL_KINDS=0 in our own launcher for now.


Written with Claude Code (Claude Opus 5.5); measured on my PC; reviewed by me.

**@⁠HQasper** on GitHub · 2026-12-01 14:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4916#issuecomment-7313909021) `7b2c3c1db2298f44`'s cost comes from #3780's gray stand-ins, not from the program's own work. On our RTX 5090 it is about 1.1 ms a frame since v2026.11.30.01 and 0.01 ms before it, and `VICTORY_NEUTRAL_ALL_KINDS=0` gives that time back. **Setup:** RTX 5090 (32 GB), driver 621.24, Windows 11, 2560x1440 output, DLSS Quality, the opening from one save, ray tracing off unless said. The fps and card-meter runs are release builds of our branch (upstream 84bd61e2, v2026.11.30.02, plus local changes of ours); the bisect builds are upstream's own commits. - **Per-command timing** (diagnostics builds, `VICTORY_GPU_TIMING=1`): `7b2c3c1db2298f44` (one 14x10x1 dispatch) is 0.00-0.01 ms a frame through a whole run on a build on 41adb551, and 1.11-1.12 ms a frame through the steady part of every run on builds on c71899d9 (v2026.11.30.01) and 84bd61e2, with ray tracing on and off. The cost is the same in every frame. - **Bisect** over the 227 first-parent commits 41adb551..c71899d9 (release builds, `VICTORY_SCRATCH_WB=0` so that #2174's table placement is out of the way; measured by the card meter's list kind `[compute 00e6aef268b1ef81] / [compute 03e3e26783a5799b]`, which holds this dispatch, in the still scene at the end of a 150 s run): 41adb551 1.22 ms, c71899d9 2.34 ms; then 6b061883 1.65, 8808916f 1.24, baaace8b 1.24, 0b8719d3 2.35. That leaves the 14 commits 05e2e1b4..0b8719d3, with #3780 (3496e742) among them. Each build logs once when it makes a gray stand-in of a kind: baaace8b made none, while 0b8719d3, c71899d9 and every 84bd61e2-based run made them for Line and Cube views (and Volume in a capture run). - **The switch** (our branch on 84bd61e2, release, 3 runs each, interleaved): with `VICTORY_NEUTRAL_ALL_KINDS=0` that list kind is 1.25-1.27 ms in the still scene against 2.35-2.37 ms, the title's lists take 13.5-13.6 ms of the card a frame against 14.6-14.7 ms, and the steady frame rate is 50.8, 50.9, 50.9 fps against 50.2, 50.3. - **Not the 1D stand-ins:** a build that keeps a null view for 1D views and #3780's stand-in for 3D and cube views (4 runs, one a lead-in, against 3) still has the full cost (2.35-2.39 ms in that list kind). So the stand-in it reads is a volume's or a cube's. We did not find out which of the two. - **Picture:** diagnostics builds with frame capture, the same build with and without `VICTORY_NEUTRAL_ALL_KINDS=0`, frames at the same count after the world's first frame: in the scene we compared (the cell, 3,000 frames in), the two differ only where things move (4.7-9.3 per channel against 1.2-2.1 within one run). No black patch in that scene. One scene only, which does not show where #3780's stand-ins help. **How we read it:** where a volume or cube texture is not there yet, the program reads a gray texel instead of zeros, and its loops run to their cap (its translation has 13 loops capped at 4,096 iterations). That would fit both the 0.82 ms on your RTX 5080 and a cost that is the same in every frame. **Not done:** other cards and other scenes; which kind of stand-in it is; whether a narrower fix (keeping the gray stand-in for materials but not for this program's slot) is possible. We use `VICTORY_NEUTRAL_ALL_KINDS=0` in our own launcher for now. --- Written with Claude Code (Claude Opus 5.5); measured on my PC; reviewed by me.
Author
Owner

@⁠mstrmoos on GitHub · 2026-12-01 17:43 UTC · original

Two more measurements for the ranked list, and one structural lever checked off. All on the same pier scene and RTX 5080.

A second (compute) queue would overlap almost nothing as the layer orders things today. VICTORY_ASYNC_QUEUE=plan (90 s, about 5,300 draws a frame) reported, per frame:

  • Submissions: 10.1 from the title's direct queue, 9.0 from its compute queues (14.9 lists).
  • Without a wait: 0.8 of the 9.0 compute submissions could start without waiting for the direct queue.
  • What the other 8.2 wait for: the card-side steps behind the flights (card_steps) 5.0, compares of copies in the card's memory 2.1, a texture's state moved on the direct queue first 6.3 (a submission can wait for more than one).
  • Read states: 7.2 read a texture in both read states (a compute list could name only the first).

The title's compute-queue lists are about 1.8-1.9 ms of card time a frame, so that's the ceiling. It's not reachable without first changing how the layer's own card steps and compares are ordered between queues. That's a bigger design question than building the queue itself.

Two upstream PRs measured on this scene:

  • #4984 (signs read at the right element) doubles the frame time here: 59 against 31 ms. Details and a census there.
  • #4927 (sparse snapshots) is 29.3 against 25.0 ms, with no drop in commit. Details there.

Translator items 3 and 4 from the list are measured null:

  • Flat wave bases for 1-D groups and no DPP ballot in all-lane blocks (two opt-in switches on my branch): 107 programs change, but b8f3f797 is 0.392 against 0.390 ms and b22a16a1 0.143 against 0.140.
  • Item 1 (dominator-tree read reuse) was about 1.5 %, in the noise, as posted above.

So on NVIDIA, this title's card time is the shape of its frame, not overhead the translator can trim.

**@⁠mstrmoos** on GitHub · 2026-12-01 17:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4916#issuecomment-7319755562) Two more measurements for the ranked list, and one structural lever checked off. All on the same pier scene and RTX 5080. **A second (compute) queue would overlap almost nothing as the layer orders things today.** `VICTORY_ASYNC_QUEUE=plan` (90 s, about 5,300 draws a frame) reported, per frame: - **Submissions:** 10.1 from the title's direct queue, 9.0 from its compute queues (14.9 lists). - **Without a wait:** 0.8 of the 9.0 compute submissions could start without waiting for the direct queue. - **What the other 8.2 wait for:** the card-side steps behind the flights (`card_steps`) 5.0, compares of copies in the card's memory 2.1, a texture's state moved on the direct queue first 6.3 (a submission can wait for more than one). - **Read states:** 7.2 read a texture in both read states (a compute list could name only the first). The title's compute-queue lists are about 1.8-1.9 ms of card time a frame, so that's the ceiling. It's not reachable without first changing how the layer's own card steps and compares are ordered between queues. That's a bigger design question than building the queue itself. **Two upstream PRs measured on this scene:** - #4984 (signs read at the right element) doubles the frame time here: 59 against 31 ms. Details and a census there. - #4927 (sparse snapshots) is 29.3 against 25.0 ms, with no drop in commit. Details there. **Translator items 3 and 4 from the list are measured null:** - Flat wave bases for 1-D groups and no DPP ballot in all-lane blocks (two opt-in switches on my branch): 107 programs change, but `b8f3f797` is 0.392 against 0.390 ms and `b22a16a1` 0.143 against 0.140. - Item 1 (dominator-tree read reuse) was about 1.5 %, in the noise, as posted above. So on NVIDIA, this title's card time is the shape of its frame, not overhead the translator can trim.
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/trustno1-coder--VIctory-NVIDIA#4917
No description provided.