Shader and pipeline tracker: dropped draws, compile stalls, costly programs #1
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
performance
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brothernog--rota#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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,
diagbuild, 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):VICTORY_RT_MISS=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
VICTORY_SHADER_CACHE_KEYdoes 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.VICTORY_SKIP_RTin 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_OCCLUSIONin fxceless/victory-fork). Done when the top programs are known and the first cut is measured.VICTORY_HEAP_WORKERin 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
diagbuild's log; quote counts and hashes only, never program names.AI-assisted.
@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.
@brothernog on GitHub · 2026-11-26 18:22 UTC · original
Thanks for testing @yuukiw . Please read the details in the read me, warm the shaders and pipelines before starting the game. Thank you.
@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: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@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 --usedreports 0 pipelines knownThe layer cache and driver cache were cleared, then
shadersran (25,776 cached, 209 do nottranslate, the same as reported above), then
warm --used. It reports0 pipelines known,because the list it reads is written only by a run with
VICTORY_PIPELINE_BOOK=1. So the firstrun after a clean setup is always cold. This matches the
warm --usedoutput posted above.warmwarm --usedbefore any runwarm --used, then a runwarm --used, then a runwarm --used, then a runWhat 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 --usedskips everythingAfter switching to the other card,
warm --usedskipped all 2,240 pipelines as "made before",even though the new card's driver cache was empty.
warm --used --againmade 2,262, at a medianof 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
host pipeline refusedlines in the logpipeline creation method that is not implementedlinesWhat I saw in run 2: more of the cinematics showed, but more geometry was missing in places,
and lighting glitched.
AI-assisted.
@brothernog on GitHub · 2026-11-26 20:25 UTC · original
@yuukiw: the
shadersstep 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 --usedprinted "0 pipelines known" because that list is written only by a run withVICTORY_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.
warm --used --againafter a card switch is the right call.VICTORY_DYNAMIC_SLOTSwas ignored there. The fix is inmainnow (66b96a4): opt-in, clamped to half the heap, soVICTORY_DYNAMIC_SLOTS=499999is the most it gives. I am measuring it now and will post numbers. It may or may not explain your 340 vs 1,186; thediaglog's drop lines, now split by reason, would tell.main).On helping (also asked in #2): I am taking item 4 (texture pass off the submitting thread; your
preparing_msof 102-299 againstgpu_wait_msof 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.
@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?
@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?
@yuukiw on GitHub · 2026-11-26 21:37 UTC · original
Sorry its 5.1gb not 4 gb. Still one less GB then it should be
@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.
@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,diagbuild, Series S profile, README settings. Two runs, 5 min and 3 min. The first one ran withVICTORY_D3D12_DEBUG=1to 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 on66b96a4:dae7c77scripts/pipeline-failures.ps1groups 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.1a0418eis the probe in the unimplemented-method stub used below (diagnostics builds only).Host pipelines refused: all five want 64-wide waves
VICTORY_WAVE_WHY=1)2da4beb386509b77v_readlane22338086ea4c5364v_mbcnt02384a60fda6f2d0v_mbcnt6832a9da15c2e584v_mbcnt6b82bc7d22016cb56832a9da15c2e58402384a60fda6f2d0got no message in the log, but it fails the same way when translated again.lower.rs~1525) needs a barrier point every thread reaches;widen(emit/mod.rs:705) only handles a group of one console wave, and these have 128 to 1,024 threads.wave_size = Some(64)(lower.rs:1625) and the driver refuses it.widenfor groups of several console waves, orlds_meetingshandling a read and a write in one lane-branch region.shaderscount 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:
0x1c80x218The 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: noDXBC,XBCHorFSSM, so the existing paths can't read them as they are.0x1c8(looks like graphics):0x4005d8080xd580xxxx0x000000020xd580xxxx0x000000020x218:0xd580xxxx, like the code above0x00000403AI-assisted.