Repository navigation
GPU diagnostics: VICTORY_SKIP_PIPELINES says what it took and when it skips - #2273
BaggyALPHA wants to merge 1 commit into
Conversation
catminou4
left a comment
There was a problem hiding this comment.
VICTORY_SKIP_PIPELINES diagnostics: report first-time skips and drop counts alongside per-frame rates (a few drops over many frames rounded to 0.0). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Diagnostics-only, useful.
|
Automated triage for the maintainers. Merge candidate. Re-reviewed at
All new code is behind On your reply: the re-application onto main's shape matches the description. CI: Generated by Claude Code |
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified against origin/main (940d32f) on Windows 11 + NVIDIA GeForce RTX 5090:
- Reporting parsed
VICTORY_SKIP_PIPELINEShashes and logging each skip once builds cleanly under both default anddiagnosticsfeature configurations. cargo test -p victory-gpu --features diagnostics pipeline::: 17/17 passed (includinga_skip_is_reported_once_per_hashandskip_hashes_accepts_full_hashes_only).cargo clippy -p victory-gpu --all-targets -- -D warnings(both default and--features diagnostics): 0 warnings.cargo xtask policy: 183 files ok.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
… skips The switch's effect was observable only in a DRED dump of whichever list happened to be dumped, or in the frame report's per-frame averages, which round a handful of dropped draws to `0`. A run with a hash set and nothing in the log was therefore indistinguishable from one whose list was refused in full (a typo, a short hash) or whose program never ran. Three lines, all behind `diagnostics`: - the hashes the switch accepted, once, where it reads them, so a list it refused in full is not mistaken for one that skipped nothing; - the first draw or dispatch each hash drops, once per hash; - the drop counts in the frame report keep their absolute count beside the rate. Nothing about what gets skipped changes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
db520b7 to
8bf864d
Compare
|
Rebased onto
The three behaviours are unchanged: the accepted hash list is said once when the switch is read, the first skip of each hash is said once, and the frame report prints the absolute drop count beside the per-frame rate. Still +47/-3 across the same two files. Checks on this branch:
What the test covers and what it does not: AI-assisted (Claude Code). |
…t it took and when it skips
Claimed in #1633.
The problem
VICTORY_SKIP_PIPELINESis the switch five open threads are bisecting the world hang with (FIND-12, FIND-13, #1968, #1972, NEW-20), but it never says whether it did anything. Its effect shows up only in two places:dropped {:.0}anddropped {:.1}/frame, which round a handful of dropped draws across many frames to0.So a run with hashes set and nothing in the log is indistinguishable from three different situations: the list was refused in full (a typo, a 15-digit hash), the named program never ran, or it ran and was skipped a few times per frame. I ran into exactly this while testing the three-program skip list from #1968 on an RTX 3080, concluded a program had been skipped when I had no evidence it had, and had to correct it publicly.
The change
Three lines, all behind
diagnostics; nothing about what gets skipped changes.dropped 31 (1.0/frame) ... : skipped shader <hash>instead ofdropped 1.0/frame ....Verification
RTX 3080 (driver 621.24), Ryzen 7 5800X, Windows 11 26300, on
main940d32f.Tests.
cargo test -p victory-gpu --features diagnostics --locked: 145 passed, 2 failed; the same two fail onmain940d32fin a separate target directory (144 passed, 2 failed) —descriptor::host::tests::dynamic_slots_are_held_until_releasedandmemory::tests::lists_share_a_table_and_copies_keep_their_views, the capped-view-heap pair (FIND-9, and what #2121 is for). Without the feature: 141 passed, same two. The newpipeline::tests::a_skip_is_reported_once_per_hashis synthetic and needs no GPU.clippy -p victory-gpu --all-targets -- -D warningsclean with and without the feature;cargo xtask policy182 files ok;rustfmt --checkproduces the same per-file diff counts asmain(which is not rustfmt-clean), so this adds none.In the title, two short runs, one graphics pipeline bound at frame 2 of the boot screens skipped, plus a deliberately malformed entry:
Two per-skip lines for 62 dropped draws, so once per hash holds. An earlier run that skipped five compute programs created during boot printed the accepted-list line and no per-skip line, which is the case this change exists to make legible: the switch was active with five valid hashes and none of them skipped anything.
Note on #1320
#1320 moves the skip to pipeline-creation time and keeps the
skipped shader {hash}reason this builds on, so the two are complementary. It touchespipeline.rsas well; whichever lands first, I will rebase this onto it (my rebase notes for that PR).Nothing from the game is in the diff or this description: a log line, a count, and a test over literal strings. The two short runs used the local title; everything else is synthetic.
AI-assisted (Claude Code); the results above are from the runs and builds described.