GPU diagnostics: VICTORY_SKIP_PIPELINES says what it took and when it skips #2273
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2273
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2273"
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?
@BaggyALPHA on GitHub · 2026-11-25 09:28 UTC · original
BaggyALPHA:diag/skip-pipelines-says-so→main· +47 −3 · 2 files · 1 commits · openClaimed 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.
@Marvisak on GitHub · 2026-11-25 13:31 UTC · original · edited 2026-11-25 22:24 UTC
Automated triage for the maintainers.
Merge candidate. Re-reviewed at
8bf864d, rebased ontof3578e3. Still diagnostics-only, and which draws are skipped does not change:skip_hashes()incrates/victory-gpu/src/pipeline.rslogs the hashes it accepted, once.note_dropnow takes the skip from main's per-pipelineskipped_shaderfield (#1320) and logs the first skip of each hash once throughfirst_time, a set touched only on skipped draws.host.rs(Meter) prints the absolute drop count beside the per-frame rate, divided by main'sreport_frames.All new code is behind
cfg(all(windows, feature = "diagnostics")). The test checks the once-per-hash predicate, not the log output, as you say.On your reply: the re-application onto main's shape matches the description. CI:
checkpassing on this head.Generated by Claude Code
@BaggyALPHA on GitHub · 2026-11-25 22:12 UTC · original
Rebased onto
mainf3578e3. Two conflicts, both from diagnostics work that landed today, and I re-applied the change onto main's shape rather than restoring it as written:host.skipped_shaderinpipeline/make.rs,57f13cf) rather than looked up per drop, so the once-per-hash line now hangs off that field innote_drop.report_frames(b04964c), so the absolute count divides by that.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:
cargo test -p victory-gpu --features diagnostics --lib: 242 passed, 2 failed, 1 ignored.mainf3578e3, separate build cache: 241 passed, 2 failed, 1 ignored. Both failures are the same pair in both rows (descriptor::host::tests::dynamic_slots_are_held_until_releasedandmemory::tests::lists_share_a_table_and_copies_keep_their_views), the known NVIDIA view-heap-cap pair from #1627. The +1 is this PR's own test.cargo clippy -p victory-gpu --features diagnostics --all-targets: clean.cargo fmt -p victory-gpu -- --check: 644 hunks on this branch and 644 on untouchedmain, so this adds none.cargo xtask policy: 190 files ok.What the test covers and what it does not:
a_skip_is_reported_once_per_hashasserts the once-per-hash predicate behind the line, not the emittedtracingoutput, and there is no world run behind this — it is a logging change on the diagnostics path. Windows 11, RTX 3080; synthetic input only, no game files.AI-assisted (Claude Code).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.