Shader and pipeline tracker: dropped draws, compile stalls, costly programs #1

Open
opened 2026-11-27 03:48:40 +00:00 by github-bot · 11 comments
Owner

@⁠brothernog on GitHub · 2026-11-26 17:39 UTC · original

The GPU-program side of the work: draws that never reach the card, pipelines made while playing, and the programs that cost the most. Memory and render scale are in #2. Results go in comments here; this description is kept current.

Now

RTX 3050 8 GB, Series S profile, diag build, about 4,500 draws a frame. Draws and dispatches dropped per frame (averages over a run, from the diagnostics build's "dropped ... without a host pipeline" lines):

Why Per frame
a stage of the ray-tracing structure builder, which is off ~890 intended (VICTORY_RT_MISS=1)
indirect mesh draws: preparing failed ~490 geometry not drawn
indirect dispatches: preparing failed ~100
indirect draws (plain and indexed): preparing failed ~43
waiting for a pipeline being made ~27
pipeline refused by the translator ~1

Pipelines: 83,570 known; a warm-up makes about 2,800 of them in about 400 s. A new build loses the warm-up: the first run after it peaks at about 2,000 pipelines being made, and its frame rate drops (3.7 against 4.6 fps).

Next, in order

  • 1. Why preparing indirect work fails (~630 a frame, most of them mesh draws). This is geometry that is never drawn: a character missing from part of a cutscene has been seen. Count the failures inside preparing by reason, numbers only, and fix the largest. Measure: dropped per frame by reason, fps. Done when the "preparing failed" lines are near zero or every remaining reason is understood.
  • 2. Keep the warm-up across builds. Find which cache key changes with every build, and key it by what the translation depends on instead of the whole executable (as VICTORY_SHADER_CACHE_KEY does in LoverCatys/ruff-lab and ZigZagBoi1/ScarlettPort). Measure: pipelines being made in the first run after a rebuild. Done when a rebuild that does not touch the translator needs no new warm-up.
  • 3. Rank the programs by GPU time. Time each pipeline on the card (timestamp queries) and list the most expensive by hash, so cuts go where the time is. Candidates once ranked: skipping passes whose output nobody reads (VICTORY_SKIP_RT in LoverCatys/ruff-lab; the miss list in trustno1-coder/VIctory-NVIDIA, about 10 ms a frame there), and real occlusion queries to skip hidden draws (VICTORY_OCCLUSION in fxceless/victory-fork). Done when the top programs are known and the first cut is measured.
  • 4. Texture pass off the submitting thread (VICTORY_HEAP_WORKER in soldsawn/victory-nvidia-8gb and JMAN730/project-flamingo, up to 250 ms a frame in its author's runs; the incremental pass in JozefDeTremmerie/CCS03). CPU time, which matters again once the GPU share falls. Measure: preparing_ms.

How we measure

AGENTS.md, "Measure a change". The drop reasons come from the diag build's log; quote counts and hashes only, never program names.

AI-assisted.

**@⁠brothernog** on GitHub · 2026-11-26 17:39 UTC · [original](https://github.com/brothernog/rota/issues/1) The GPU-program side of the work: draws that never reach the card, pipelines made while playing, and the programs that cost the most. Memory and render scale are in #2. Results go in comments here; this description is kept current. ## Now RTX 3050 8 GB, Series S profile, `diag` build, about 4,500 draws a frame. Draws and dispatches dropped per frame (averages over a run, from the diagnostics build's "dropped ... without a host pipeline" lines): | Why | Per frame | | |---|---|---| | a stage of the ray-tracing structure builder, which is off | ~890 | intended (`VICTORY_RT_MISS=1`) | | indirect mesh draws: preparing failed | ~490 | **geometry not drawn** | | indirect dispatches: preparing failed | ~100 | | | indirect draws (plain and indexed): preparing failed | ~43 | | | waiting for a pipeline being made | ~27 | | | pipeline refused by the translator | ~1 | | Pipelines: 83,570 known; a warm-up makes about 2,800 of them in about 400 s. A new build loses the warm-up: the first run after it peaks at about 2,000 pipelines being made, and its frame rate drops (3.7 against 4.6 fps). ## Next, in order - [ ] **1. Why preparing indirect work fails** (~630 a frame, most of them mesh draws). This is geometry that is never drawn: a character missing from part of a cutscene has been seen. Count the failures inside preparing by reason, numbers only, and fix the largest. *Measure:* dropped per frame by reason, fps. *Done when* the "preparing failed" lines are near zero or every remaining reason is understood. - [ ] **2. Keep the warm-up across builds.** Find which cache key changes with every build, and key it by what the translation depends on instead of the whole executable (as `VICTORY_SHADER_CACHE_KEY` does in LoverCatys/ruff-lab and ZigZagBoi1/ScarlettPort). *Measure:* pipelines being made in the first run after a rebuild. *Done when* a rebuild that does not touch the translator needs no new warm-up. - [ ] **3. Rank the programs by GPU time.** Time each pipeline on the card (timestamp queries) and list the most expensive by hash, so cuts go where the time is. Candidates once ranked: skipping passes whose output nobody reads (`VICTORY_SKIP_RT` in LoverCatys/ruff-lab; the miss list in trustno1-coder/VIctory-NVIDIA, about 10 ms a frame there), and real occlusion queries to skip hidden draws (`VICTORY_OCCLUSION` in fxceless/victory-fork). *Done when* the top programs are known and the first cut is measured. - [ ] **4. Texture pass off the submitting thread** (`VICTORY_HEAP_WORKER` in soldsawn/victory-nvidia-8gb and JMAN730/project-flamingo, up to 250 ms a frame in its author's runs; the incremental pass in JozefDeTremmerie/CCS03). CPU time, which matters again once the GPU share falls. *Measure:* `preparing_ms`. ## How we measure [AGENTS.md](https://github.com/brothernog/rota/blob/main/AGENTS.md), "Measure a change". The drop reasons come from the `diag` build's log; quote counts and hashes only, never program names. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 03:48:40 +00:00
Author
Owner

@⁠yuukiw on GitHub · 2026-11-26 18:08 UTC · original

3060 LAptop 130W, 6GB seems to be similar.

Many dropped shaders, black screen but it reports 4-5 fps.

**@⁠yuukiw** on GitHub · 2026-11-26 18:08 UTC · [original](https://github.com/brothernog/rota/issues/1#issuecomment-7200098067) 3060 LAptop 130W, 6GB seems to be similar. Many dropped shaders, black screen but it reports 4-5 fps.
Author
Owner

@⁠brothernog on GitHub · 2026-11-26 18:22 UTC · original

3060 LAptop 130W, 6GB seems to be similar.

Many dropped shaders, black screen but it reports 4-5 fps.

Thanks for testing @⁠yuukiw . Please read the details in the read me, warm the shaders and pipelines before starting the game. Thank you.

**@⁠brothernog** on GitHub · 2026-11-26 18:22 UTC · [original](https://github.com/brothernog/rota/issues/1#issuecomment-7200376145) > 3060 LAptop 130W, 6GB seems to be similar. > > Many dropped shaders, black screen but it reports 4-5 fps. Thanks for testing @⁠yuukiw . Please read the details in the read me, warm the shaders and pipelines before starting the game. Thank you.
Author
Owner

@⁠yuukiw on GitHub · 2026-11-26 18:34 UTC · original · edited 2026-11-26 20:25 UTC

the sharders of the game are the shaders.vpf next to the game right?

**@⁠yuukiw** on GitHub · 2026-11-26 18:34 UTC · [original](https://github.com/brothernog/rota/issues/1#issuecomment-7200616594) · edited 2026-11-26 20:25 UTC the sharders of the game are the shaders.vpf next to the game right?
Author
Owner

@⁠yuukiw on GitHub · 2026-11-26 18:36 UTC · original · edited 2026-11-26 20:39 UTC

if so they seem to be prepared.

PS .\rota> .\target\diag\victory.exe shaders ".\shaders.rpf" 2026-11-26T18:34:07.941892Z INFO victory_gpu::tdr: GPU timeout detection (TdrLevel, TdrDelay, TdrDdiDelay) level=default delay=10 ddi_delay=default 2026-11-26T18:34:07.945758Z INFO victory_gpu::host: host wave lanes min=32 max=32 2026-11-26T18:34:08.038245Z INFO victory_gpu::host: host D3D12 device ready 2026-11-26T18:34:08.040845Z INFO victory_gpu::descriptor::host: host view heaps hold 1000000 views; view indices are clamped to the null slot at the end from the first shader on views=1000000 raw_twins=false 1000 shaders in the cache, 4 s 2000 shaders in the cache, 4 s 3000 shaders in the cache, 4 s 4000 shaders in the cache, 4 s 5000 shaders in the cache, 4 s 6000 shaders in the cache, 5 s 7000 shaders in the cache, 6 s 8000 shaders in the cache, 7 s 9000 shaders in the cache, 7 s 10000 shaders in the cache, 8 s 11000 shaders in the cache, 9 s 12000 shaders in the cache, 10 s 13000 shaders in the cache, 11 s 14000 shaders in the cache, 12 s 15000 shaders in the cache, 12 s 16000 shaders in the cache, 13 s 17000 shaders in the cache, 14 s 18000 shaders in the cache, 15 s 19000 shaders in the cache, 15 s 20000 shaders in the cache, 16 s 21000 shaders in the cache, 17 s 22000 shaders in the cache, 17 s 23000 shaders in the cache, 18 s 24000 shaders in the cache, 19 s 25000 shaders in the cache, 20 s 25689 shaders in the cache, 200 do not translate, 21 s 195 converter shader.dxil v1: GFX10 code at 0x0: a container without a vertex, pixel, compute or mesh program is not supported (e.g. d82a0a5a22471c77) 1 converter shader.dxil v1: GFX10 code at 0x1d70: a descriptor read only as data is not supported (e.g. 002e93a6cc2aa355) 1 converter shader.dxil v1: GFX10 code at 0x1e18: a descriptor read only as data is not supported (e.g. 0e64f14fae060d04) 1 converter shader.dxil v1: GFX10 code at 0x1e48: a descriptor read only as data is not supported (e.g. dbdbf36298727135) 1 converter shader.dxil v1: GFX10 code at 0x1e70: a descriptor read only as data is not supported (e.g. 96ccb14ef981fd85) 1 converter shader.dxil v1: GFX10 code at 0x2070: a descriptor read only as data is not supported (e.g. 07c93bfb77fecebb) PS .\rota> target\diag\victory.exe warm --used 2026-11-26T18:35:15.457666Z INFO victory_gpu::tdr: GPU timeout detection (TdrLevel, TdrDelay, TdrDdiDelay) level=default delay=10 ddi_delay=default 2026-11-26T18:35:15.457867Z INFO victory_gpu::host: host wave lanes min=32 max=32 2026-11-26T18:35:15.520809Z INFO victory_gpu::host: host D3D12 device ready 2026-11-26T18:35:15.521157Z INFO victory_gpu::descriptor::host: host view heaps hold 1000000 views; view indices are clamped to the null slot at the end from the first shader on views=1000000 raw_twins=false 0 pipelines known, 0 made before (edec40d999e6d4bf), 0 bad; 0 to make, 10 processes 0 made in 3 s (0 have no host pipeline, 0 ended their process); ms each: median 0.0, p90 0.0, p99 0.0, most 0, sum -0 s

**@⁠yuukiw** on GitHub · 2026-11-26 18:36 UTC · [original](https://github.com/brothernog/rota/issues/1#issuecomment-7200650684) · edited 2026-11-26 20:39 UTC if so they seem to be prepared. `PS .\rota> .\target\diag\victory.exe shaders ".\shaders.rpf" 2026-11-26T18:34:07.941892Z INFO victory_gpu::tdr: GPU timeout detection (TdrLevel, TdrDelay, TdrDdiDelay) level=default delay=10 ddi_delay=default 2026-11-26T18:34:07.945758Z INFO victory_gpu::host: host wave lanes min=32 max=32 2026-11-26T18:34:08.038245Z INFO victory_gpu::host: host D3D12 device ready 2026-11-26T18:34:08.040845Z INFO victory_gpu::descriptor::host: host view heaps hold 1000000 views; view indices are clamped to the null slot at the end from the first shader on views=1000000 raw_twins=false 1000 shaders in the cache, 4 s 2000 shaders in the cache, 4 s 3000 shaders in the cache, 4 s 4000 shaders in the cache, 4 s 5000 shaders in the cache, 4 s 6000 shaders in the cache, 5 s 7000 shaders in the cache, 6 s 8000 shaders in the cache, 7 s 9000 shaders in the cache, 7 s 10000 shaders in the cache, 8 s 11000 shaders in the cache, 9 s 12000 shaders in the cache, 10 s 13000 shaders in the cache, 11 s 14000 shaders in the cache, 12 s 15000 shaders in the cache, 12 s 16000 shaders in the cache, 13 s 17000 shaders in the cache, 14 s 18000 shaders in the cache, 15 s 19000 shaders in the cache, 15 s 20000 shaders in the cache, 16 s 21000 shaders in the cache, 17 s 22000 shaders in the cache, 17 s 23000 shaders in the cache, 18 s 24000 shaders in the cache, 19 s 25000 shaders in the cache, 20 s 25689 shaders in the cache, 200 do not translate, 21 s 195 converter shader.dxil v1: GFX10 code at 0x0: a container without a vertex, pixel, compute or mesh program is not supported (e.g. d82a0a5a22471c77) 1 converter shader.dxil v1: GFX10 code at 0x1d70: a descriptor read only as data is not supported (e.g. 002e93a6cc2aa355) 1 converter shader.dxil v1: GFX10 code at 0x1e18: a descriptor read only as data is not supported (e.g. 0e64f14fae060d04) 1 converter shader.dxil v1: GFX10 code at 0x1e48: a descriptor read only as data is not supported (e.g. dbdbf36298727135) 1 converter shader.dxil v1: GFX10 code at 0x1e70: a descriptor read only as data is not supported (e.g. 96ccb14ef981fd85) 1 converter shader.dxil v1: GFX10 code at 0x2070: a descriptor read only as data is not supported (e.g. 07c93bfb77fecebb) PS .\rota> target\diag\victory.exe warm --used 2026-11-26T18:35:15.457666Z INFO victory_gpu::tdr: GPU timeout detection (TdrLevel, TdrDelay, TdrDdiDelay) level=default delay=10 ddi_delay=default 2026-11-26T18:35:15.457867Z INFO victory_gpu::host: host wave lanes min=32 max=32 2026-11-26T18:35:15.520809Z INFO victory_gpu::host: host D3D12 device ready 2026-11-26T18:35:15.521157Z INFO victory_gpu::descriptor::host: host view heaps hold 1000000 views; view indices are clamped to the null slot at the end from the first shader on views=1000000 raw_twins=false 0 pipelines known, 0 made before (edec40d999e6d4bf), 0 bad; 0 to make, 10 processes 0 made in 3 s (0 have no host pipeline, 0 ended their process); ms each: median 0.0, p90 0.0, p99 0.0, most 0, sum -0 s`
Author
Owner

@⁠nullrv on GitHub · 2026-11-26 20:13 UTC · original

Ryzen 9 5900X, 32 GB RAM, RTX 3060 Ti 8 GB and RTX 2060 6 GB (one enabled at a time), driver
621.40, Windows 11 build 26200. Layer at bb78843, diag build, Series S profile, README settings
(VICTORY_RT_MISS=1, VICTORY_RELAY=2, VICTORY_THIN=0, VICTORY_DISPLAY_MODE=1920x1080,
VICTORY_PIPELINE_BOOK=1, VICTORY_MEMORY_CARD_MB=1024, VICTORY_UPSCALER=6, VICTORY_MEMORY_MAP=0).
Same route in every run.

Clean setup: warm --used reports 0 pipelines known

The layer cache and driver cache were cleared, then shaders ran (25,776 cached, 209 do not
translate, the same as reported above), then warm --used. It reports 0 pipelines known,
because the list it reads is written only by a run with VICTORY_PIPELINE_BOOK=1. So the first
run after a clean setup is always cold. This matches the warm --used output posted above.

Step on a clean setup (3060 Ti) Pipelines made by warm fps Draws / dropped
warm --used before any run 0 – –
First run (cold) – 2.8 1,338 / 1,182
warm --used, then a run 2,103 2.7 2,721 / 412
warm --used, then a run 117 4.1 2,647 / 340
warm --used, then a run 20 5.5 3,443 / 1,186

What I saw on screen: in the cold first run, little showed up. After the warm-up it rendered.
That may be the black screen reported above. I have not measured that link: the last warm run
dropped as many draws as the cold run.

An order that works from scratch: shaders → one run (it records the pipelines) →
warm --used → run. A line in the README would help.

Switching cards: warm --used skips everything

After switching to the other card, warm --used skipped all 2,240 pipelines as "made before",
even though the new card's driver cache was empty. warm --used --again made 2,262, at a median
of 353 ms each (47 ms each on the card that was already warm). Keying "made before" on the
adapter as well would fix this.

Dropped draws and pipelines, settled cache

3060 Ti run 1 3060 Ti run 2 2060 run 1 2060 run 2
Draws per frame (median) 2,647 3,443 3,266 3,429
Dropped per frame (median) 340 1,186 407 458
Peak pipelines being made 2,552 1,630 2,811 2,253
host pipeline refused lines in the log 7 7 5 5
pipeline creation method that is not implemented lines 29 29 29 29
  • The two 3060 Ti runs took the same route but differed by a factor of 3.5 in dropped draws.
    What I saw in run 2: more of the cinematics showed, but more geometry was missing in places,
    and lighting glitched.
  • Even with a settled cache, 1,600–2,800 pipelines are being made at the peak in every run.
  • The driver refuses pipelines with "The parameter is incorrect", in every run.

AI-assisted.

**@⁠nullrv** on GitHub · 2026-11-26 20:13 UTC · [original](https://github.com/brothernog/rota/issues/1#issuecomment-7202437474) Ryzen 9 5900X, 32 GB RAM, RTX 3060 Ti 8 GB and RTX 2060 6 GB (one enabled at a time), driver 621.40, Windows 11 build 26200. Layer at `bb78843`, diag build, Series S profile, README settings (`VICTORY_RT_MISS=1`, `VICTORY_RELAY=2`, `VICTORY_THIN=0`, `VICTORY_DISPLAY_MODE=1920x1080`, `VICTORY_PIPELINE_BOOK=1`, `VICTORY_MEMORY_CARD_MB=1024`, `VICTORY_UPSCALER=6`, `VICTORY_MEMORY_MAP=0`). Same route in every run. ### Clean setup: `warm --used` reports 0 pipelines known The layer cache and driver cache were cleared, then `shaders` ran (25,776 cached, 209 do not translate, the same as reported above), then `warm --used`. It reports `0 pipelines known`, because the list it reads is written only by a run with `VICTORY_PIPELINE_BOOK=1`. So the first run after a clean setup is always cold. This matches the `warm --used` output posted above. | Step on a clean setup (3060 Ti) | Pipelines made by `warm` | fps | Draws / dropped | |---|---:|---:|---:| | `warm --used` before any run | 0 | – | – | | First run (cold) | – | 2.8 | 1,338 / 1,182 | | `warm --used`, then a run | 2,103 | 2.7 | 2,721 / 412 | | `warm --used`, then a run | 117 | 4.1 | 2,647 / 340 | | `warm --used`, then a run | 20 | 5.5 | 3,443 / 1,186 | What I saw on screen: in the cold first run, little showed up. After the warm-up it rendered. That may be the black screen reported above. I have not measured that link: the last warm run dropped as many draws as the cold run. An order that works from scratch: `shaders` → one run (it records the pipelines) → `warm --used` → run. A line in the README would help. ### Switching cards: `warm --used` skips everything After switching to the other card, `warm --used` skipped all 2,240 pipelines as "made before", even though the new card's driver cache was empty. `warm --used --again` made 2,262, at a median of 353 ms each (47 ms each on the card that was already warm). Keying "made before" on the adapter as well would fix this. ### Dropped draws and pipelines, settled cache | | 3060 Ti run 1 | 3060 Ti run 2 | 2060 run 1 | 2060 run 2 | |---|---:|---:|---:|---:| | Draws per frame (median) | 2,647 | 3,443 | 3,266 | 3,429 | | Dropped per frame (median) | 340 | 1,186 | 407 | 458 | | Peak pipelines being made | 2,552 | 1,630 | 2,811 | 2,253 | | `host pipeline refused` lines in the log | 7 | 7 | 5 | 5 | | `pipeline creation method that is not implemented` lines | 29 | 29 | 29 | 29 | - The two 3060 Ti runs took the same route but differed by a factor of 3.5 in dropped draws. What I saw in run 2: more of the cinematics showed, but more geometry was missing in places, and lighting glitched. - Even with a settled cache, 1,600–2,800 pipelines are being made at the peak in every run. - The driver refuses pipelines with "The parameter is incorrect", in every run. AI-assisted.
Author
Owner

@⁠brothernog on GitHub · 2026-11-26 20:25 UTC · original

@⁠yuukiw: the shaders step only translates the title's shader pack into the cache (25,689 cached, 200 that do not translate is expected; nullrv sees about the same). "Prepared" there means translated, not that pipelines exist. warm --used printed "0 pipelines known" because that list is written only by a run with VICTORY_PIPELINE_BOOK=1. So on a clean setup the order is: shaders -> one run with the pipeline book on (it records what the title uses; this first run is cold, so expect drops and a mostly black image) -> warm --used -> run again. I will put this order in the README.

One request: please edit your earlier comment to remove the local paths. As AGENTS.md says, the title's name and file paths stay out of this repo; I have hidden that comment for now.

@⁠nullrv: thank you, this is very useful data.

  • Your clean-setup table matches the above. README line coming.
  • Switching cards: "made before" is not keyed by the adapter, as you say. Until it is fixed, warm --used --again after a card switch is the right call.
  • Dropped draws: on my RTX 3050 8 GB, per-reason counters show that 100% of the ~300 indirect "prepare failed" drops per frame are descriptor tables that found no free dynamic slots. On NVIDIA the view heap is capped at 1,000,000 and VICTORY_DYNAMIC_SLOTS was ignored there. The fix is in main now (66b96a4): opt-in, clamped to half the heap, so VICTORY_DYNAMIC_SLOTS=499999 is the most it gives. I am measuring it now and will post numbers. It may or may not explain your 340 vs 1,186; the diag log's drop lines, now split by reason, would tell.
  • Pipelines made at peak with a settled cache: on my side a run right after a rebuild loaded 4,486 pipelines from the pipeline library and compiled 2, so the peak you see is mostly the load-time queue. The translation cache key now covers every translator switch (also in main).
  • I have not looked at the "refused" lines, "The parameter is incorrect" or the 29 "not implemented" lines.

On helping (also asked in #2): I am taking item 4 (texture pass off the submitting thread; your preparing_ms of 102-299 against gpu_wait_ms of 27-56 says the same) and the slot work. Things I am not touching and that would be useful: the adapter key for the warm-up bookkeeping, and the pipeline refusals / "not implemented" lines (what triggers them, by hash only). Same rules as in AGENTS.md: numbers and hashes only, no program names.

This comment was AI-assisted.

**@⁠brothernog** on GitHub · 2026-11-26 20:25 UTC · [original](https://github.com/brothernog/rota/issues/1#issuecomment-7202671090) @⁠yuukiw: the `shaders` step only translates the title's shader pack into the cache (25,689 cached, 200 that do not translate is expected; nullrv sees about the same). "Prepared" there means translated, not that pipelines exist. `warm --used` printed "0 pipelines known" because that list is written only by a run with `VICTORY_PIPELINE_BOOK=1`. So on a clean setup the order is: `shaders` -> one run with the pipeline book on (it records what the title uses; this first run is cold, so expect drops and a mostly black image) -> `warm --used` -> run again. I will put this order in the README. One request: please edit your earlier comment to remove the local paths. As AGENTS.md says, the title's name and file paths stay out of this repo; I have hidden that comment for now. @⁠nullrv: thank you, this is very useful data. - Your clean-setup table matches the above. README line coming. - Switching cards: "made before" is not keyed by the adapter, as you say. Until it is fixed, `warm --used --again` after a card switch is the right call. - Dropped draws: on my RTX 3050 8 GB, per-reason counters show that 100% of the ~300 indirect "prepare failed" drops per frame are descriptor tables that found no free dynamic slots. On NVIDIA the view heap is capped at 1,000,000 and `VICTORY_DYNAMIC_SLOTS` was ignored there. The fix is in `main` now (66b96a4): opt-in, clamped to half the heap, so `VICTORY_DYNAMIC_SLOTS=499999` is the most it gives. I am measuring it now and will post numbers. It may or may not explain your 340 vs 1,186; the `diag` log's drop lines, now split by reason, would tell. - Pipelines made at peak with a settled cache: on my side a run right after a rebuild loaded 4,486 pipelines from the pipeline library and compiled 2, so the peak you see is mostly the load-time queue. The translation cache key now covers every translator switch (also in `main`). - I have not looked at the "refused" lines, "The parameter is incorrect" or the 29 "not implemented" lines. On helping (also asked in #2): I am taking item 4 (texture pass off the submitting thread; your `preparing_ms` of 102-299 against `gpu_wait_ms` of 27-56 says the same) and the slot work. Things I am not touching and that would be useful: the adapter key for the warm-up bookkeeping, and the pipeline refusals / "not implemented" lines (what triggers them, by hash only). Same rules as in AGENTS.md: numbers and hashes only, no program names. This comment was AI-assisted.
Author
Owner

@⁠yuukiw on GitHub · 2026-11-26 20:42 UTC · original

Also i dont know if it relevant but the overlay reports the vram as 4gb while the gpu has 6gb. Maybe it uses the default igpu setting of 4 (v)ram?

**@⁠yuukiw** on GitHub · 2026-11-26 20:42 UTC · [original](https://github.com/brothernog/rota/issues/1#issuecomment-7202992131) Also i dont know if it relevant but the overlay reports the vram as 4gb while the gpu has 6gb. Maybe it uses the default igpu setting of 4 (v)ram?
Author
Owner

@⁠nullrv on GitHub · 2026-11-26 21:28 UTC · original · edited 2026-11-26 21:30 UTC

@⁠brothernog I've create a pull request for the adapter key for the warm-up bookkeeping (#3). Would you prefer that, in cases like that, I create an issue as well as companion to the PR?

@⁠yuukiw I think we are always picking the default card, even when the system has two cards. What does the overlay says below the CPU name?

**@⁠nullrv** on GitHub · 2026-11-26 21:28 UTC · [original](https://github.com/brothernog/rota/issues/1#issuecomment-7203754108) · edited 2026-11-26 21:30 UTC @⁠brothernog I've create a pull request for the adapter key for the warm-up bookkeeping (https://git.gtahub.st/github/brothernog--rota/pulls/3). Would you prefer that, in cases like that, I create an issue as well as companion to the PR? @⁠yuukiw I think we are always picking the default card, even when the system has two cards. What does the overlay says below the CPU name?
Author
Owner

@⁠yuukiw on GitHub · 2026-11-26 21:37 UTC · original

image

Sorry its 5.1gb not 4 gb. Still one less GB then it should be

**@⁠yuukiw** on GitHub · 2026-11-26 21:37 UTC · [original](https://github.com/brothernog/rota/issues/1#issuecomment-7203905089) <img width="662" height="763" alt="image" src="https://github.com/user-attachments/assets/44ba993e-3b7c-4ad2-a797-3b28ec1baaea" /> Sorry its 5.1gb not 4 gb. Still one less GB then it should be
Author
Owner

@⁠brothernog on GitHub · 2026-11-26 21:55 UTC · original

@⁠yuukiw the overlay's VRAM figure is the budget Windows gives the process (QueryVideoMemoryInfo), not the card's total. Windows keeps part of the card for itself and other programs, so 5.1 of 6 GB is expected; on my 8 GB card it shows about 6.6-6.8. If the name under the CPU line is your 6 GB card, the layer is running on it. If it names the integrated GPU, that is the default-adapter pick nullrv mentioned, and worth its own issue.

This comment was AI-assisted.

**@⁠brothernog** on GitHub · 2026-11-26 21:55 UTC · [original](https://github.com/brothernog/rota/issues/1#issuecomment-7204196408) @⁠yuukiw the overlay's VRAM figure is the budget Windows gives the process (`QueryVideoMemoryInfo`), not the card's total. Windows keeps part of the card for itself and other programs, so 5.1 of 6 GB is expected; on my 8 GB card it shows about 6.6-6.8. If the name under the CPU line is your 6 GB card, the layer is running on it. If it names the integrated GPU, that is the default-adapter pick nullrv mentioned, and worth its own issue. This comment was AI-assisted.
Author
Owner

@⁠nullrv on GitHub · 2026-11-26 22:33 UTC · original

Following up on the pipeline refusals and the "not implemented" lines. RTX 3060 Ti 8 GB, driver 621.40, layer at 66b96a4, diag build, Series S profile, README settings. Two runs, 5 min and 3 min. The first one ran with VICTORY_D3D12_DEBUG=1 to get the driver's reasons, so its frame numbers don't compare with other runs.

The tools are on nullrv/rota:pipeline-probes, two commits on 66b96a4:

  • dae7c77 scripts/pipeline-failures.ps1 groups a run's log into the refusals (with their D3D12 messages), the translator's no-host-pipeline reasons, and the unimplemented methods word by word. Output is numbers and hashes only; words that read as text are masked.
  • 1a0418e is the probe in the unimplemented-method stub used below (diagnostics builds only).

Host pipelines refused: all five want 64-wide waves

Shader hash Threads per group Why it stays wave64 (VICTORY_WAVE_WHY=1)
2da4beb386509b77 256 LDS in a group over 32, LDS read and write in one lane-branch region, v_readlane
22338086ea4c5364 128 as above, plus mask as data and v_mbcnt
02384a60fda6f2d0 128 as above, plus mask as data and v_mbcnt
6832a9da15c2e584 1024 LDS in a group over 32, LDS read and write in one lane-branch region, mask as data, v_mbcnt
6b82bc7d22016cb5 1024 as 6832a9da15c2e584
  • All five are compute pipelines.
  • With the debug layer on, the driver's reason is D3D12 message 622: the program asks for a wave lane count of 64 and the card's maximum is 32. "The parameter is incorrect" is how that failure shows up without the debug layer. 02384a60fda6f2d0 got no message in the log, but it fails the same way when translated again.
  • None of the fallbacks work for these:
    • the split into two 32-lane halves (lower.rs ~1525) needs a barrier point every thread reaches;
    • both "local waves" retries still come back at 64;
    • widen (emit/mod.rs:705) only handles a group of one console wave, and these have 128 to 1,024 threads.
  • So the translator writes wave_size = Some(64) (lower.rs:1625) and the driver refuses it.
  • Fixing it means widen for groups of several console waves, or lds_meetings handling a read and a write in one lane-branch region.
  • Smaller option: report a program that is still wave64 on a 32-lane host as "does not translate", so it shows in the shaders count with its reason instead of as a driver error.

"Pipeline creation method that is not implemented": tens of thousands of calls, not 29

That line logs the first 4 calls and then only every power of two. The 29 lines are 16 + 13:

Slot Calls in a run When
0x1c8 at least 16,384 (no 32,768 line) all within about 2 s of the title starting
0x218 at least 2,048 (no 4,096 line) same burst

The count and timing are the same in both runs. That suggests a batch created once at start rather than per frame. It may be most of the title's pipelines, built from data compiled ahead of time.

The probe (1a0418e) is diagnostics-only. For each (address, size) pair of words in the description, it logs the size and the first 4 bytes. None of them is a container: no DXBC, XBCH or FSSM, so the existing paths can't read them as they are.

0x1c8 (looks like graphics):

Offset Size First dword Guess
+0x00 root signature (one of our objects: its first word is always the same vtable)
+0x08 0x17c to 0x18c always 0x4005d808 a header
+0x18 0x78 to 0xbc varies
+0x28 0x140 to 0x300 0xd580xxxx program code, stage 1
+0x38 0x50 to 0x130 always 0x00000002 its description
+0x48 0x140 to 0x200 0xd580xxxx program code, stage 2
+0x58 0x30 to 0x2f0 always 0x00000002 its description
+0x68 usually zero maybe an optional third pair
  • The pieces at +0x08, +0x18, +0x38 and +0x58 sit end to end in one buffer.
  • The code blobs sit in a separate 256-byte-aligned region, also end to end. Every one starts with the same 16 bits.
  • This looks like programs already in hardware form: code plus a per-program description, not containers.

0x218:

Offset Size First dword
+0x00 the same root signature object
+0x08 0x1c
+0x18 0x14 varies; a hash?
+0x28 0x180 at call 1, 0x1f9c0 at call 2048 0xd580xxxx, like the code above
+0x38 0x118 to 0x1798 always 0x00000403
+0x58 a 64-bit value that changes every call
  • The code and description blobs get larger with each call. The struct is longer than the 128 bytes dumped: a second (0x1c, ...) group starts at +0x68.
  • I can't tell yet what this one makes. A pipeline that gathers more programs as it goes is my guess, not verified.

AI-assisted.

**@⁠nullrv** on GitHub · 2026-11-26 22:33 UTC · [original](https://github.com/brothernog/rota/issues/1#issuecomment-7204785646) Following up on the pipeline refusals and the "not implemented" lines. RTX 3060 Ti 8 GB, driver 621.40, layer at `66b96a4`, `diag` build, Series S profile, README settings. Two runs, 5 min and 3 min. The first one ran with `VICTORY_D3D12_DEBUG=1` to get the driver's reasons, so its frame numbers don't compare with other runs. The tools are on [`nullrv/rota:pipeline-probes`](https://github.com/nullrv/rota/tree/pipeline-probes), two commits on `66b96a4`: - [`dae7c77`](https://github.com/nullrv/rota/commit/dae7c77) `scripts/pipeline-failures.ps1` groups a run's log into the refusals (with their D3D12 messages), the translator's no-host-pipeline reasons, and the unimplemented methods word by word. Output is numbers and hashes only; words that read as text are masked. - [`1a0418e`](https://github.com/nullrv/rota/commit/1a0418e) is the probe in the unimplemented-method stub used below (diagnostics builds only). ### Host pipelines refused: all five want 64-wide waves | Shader hash | Threads per group | Why it stays wave64 (`VICTORY_WAVE_WHY=1`) | |---|---:|---| | `2da4beb386509b77` | 256 | LDS in a group over 32, LDS read and write in one lane-branch region, `v_readlane` | | `22338086ea4c5364` | 128 | as above, plus mask as data and `v_mbcnt` | | `02384a60fda6f2d0` | 128 | as above, plus mask as data and `v_mbcnt` | | `6832a9da15c2e584` | 1024 | LDS in a group over 32, LDS read and write in one lane-branch region, mask as data, `v_mbcnt` | | `6b82bc7d22016cb5` | 1024 | as `6832a9da15c2e584` | - All five are compute pipelines. - With the debug layer on, the driver's reason is D3D12 message 622: the program asks for a wave lane count of 64 and the card's maximum is 32. "The parameter is incorrect" is how that failure shows up without the debug layer. `02384a60fda6f2d0` got no message in the log, but it fails the same way when translated again. - None of the fallbacks work for these: - the split into two 32-lane halves (`lower.rs` ~1525) needs a barrier point every thread reaches; - both "local waves" retries still come back at 64; - `widen` (`emit/mod.rs:705`) only handles a group of one console wave, and these have 128 to 1,024 threads. - So the translator writes `wave_size = Some(64)` (`lower.rs:1625`) and the driver refuses it. - Fixing it means `widen` for groups of several console waves, or `lds_meetings` handling a read and a write in one lane-branch region. - Smaller option: report a program that is still wave64 on a 32-lane host as "does not translate", so it shows in the `shaders` count with its reason instead of as a driver error. ### "Pipeline creation method that is not implemented": tens of thousands of calls, not 29 That line logs the first 4 calls and then only every power of two. The 29 lines are 16 + 13: | Slot | Calls in a run | When | |---|---:|---| | `0x1c8` | at least 16,384 (no 32,768 line) | all within about 2 s of the title starting | | `0x218` | at least 2,048 (no 4,096 line) | same burst | The count and timing are the same in both runs. That suggests a batch created once at start rather than per frame. It may be most of the title's pipelines, built from data compiled ahead of time. The probe ([`1a0418e`](https://github.com/nullrv/rota/commit/1a0418e)) is diagnostics-only. For each (address, size) pair of words in the description, it logs the size and the first 4 bytes. None of them is a container: no `DXBC`, `XBCH` or `FSSM`, so the existing paths can't read them as they are. **`0x1c8`** (looks like graphics): | Offset | Size | First dword | Guess | |---|---|---|---| | +0x00 | | root signature (one of our objects: its first word is always the same vtable) | | | +0x08 | 0x17c to 0x18c | always `0x4005d808` | a header | | +0x18 | 0x78 to 0xbc | varies | | | +0x28 | 0x140 to 0x300 | `0xd580xxxx` | program code, stage 1 | | +0x38 | 0x50 to 0x130 | always `0x00000002` | its description | | +0x48 | 0x140 to 0x200 | `0xd580xxxx` | program code, stage 2 | | +0x58 | 0x30 to 0x2f0 | always `0x00000002` | its description | | +0x68 | | usually zero | maybe an optional third pair | - The pieces at +0x08, +0x18, +0x38 and +0x58 sit end to end in one buffer. - The code blobs sit in a separate 256-byte-aligned region, also end to end. Every one starts with the same 16 bits. - This looks like programs already in hardware form: code plus a per-program description, not containers. **`0x218`:** | Offset | Size | First dword | |---|---|---| | +0x00 | | the same root signature object | | +0x08 | 0x1c | | | +0x18 | 0x14 | varies; a hash? | | +0x28 | 0x180 at call 1, 0x1f9c0 at call 2048 | `0xd580xxxx`, like the code above | | +0x38 | 0x118 to 0x1798 | always `0x00000403` | | +0x58 | | a 64-bit value that changes every call | - The code and description blobs get larger with each call. The struct is longer than the 128 bytes dumped: a second (0x1c, ...) group starts at +0x68. - I can't tell yet what this one makes. A pipeline that gathers more programs as it goes is my guess, not verified. AI-assisted.
This discussion has been locked. Commenting is limited to contributors.
No description provided.