Repository navigation
GPU diagnostics: VICTORY_SKIP_PIPELINES says what it took and when it skips - #2273
Open
BaggyALPHA wants to merge 1 commit into
Open
BaggyALPHA wants to merge 1 commit into
BaggyALPHA wants to merge 1 commit into
Conversation
… 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>
catminou4
reviewed
Nov 25, 2026
catminou4
left a comment
Contributor
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.