Merge pull request #46 from 9hvn9yt2vk-netizen/shader-loop-limit

shader: VICTORY_SHADER_LOOP_LIMIT to find what makes world frames slow
This commit is contained in:
Marvis authored and GitHub committed 2026-11-24 01:42:45 +01:00
commit 91e9bc9924
4 files changed
+74 -9

No files matched your search

+1
View File
@@ -119,6 +119,7 @@ cargo build --profile diag -p victory --features diagnostics # target\diag\vic
| `VICTORY_SKIP_PIPELINES=<hash>,...` | omit draws and dispatches, including indirect ones, whose pipeline contains a listed 16-digit shader hash |
| `VICTORY_GPU_TIMING=1` | with the above, each list of a submission run and timed on its own; slow lists logged with their slowest commands |
| `VICTORY_D3D12_WARP=1` | host device on the software adapter (slow; cannot reset the driver) |
| `VICTORY_SHADER_LOOP_LIMIT=<n>` | translated shader loops stop after `n` iterations per lane instead of 2^20 (own shader cache entries); if a lower `n` makes world frames much faster, loops hitting the limit are what makes them slow |
| `VICTORY_AUDIO_CAPTURE=<file.wav>` | records what the title plays (our process only) |
| `VICTORY_XMA_DUMP=<dir>` | saves the first 32 XMA voices' context and input |