GPU diagnostics: VICTORY_SKIP_PIPELINES says what it took and when it skips #2273

Open
github-bot wants to merge 1 commit from github-bot/gh-2273 into main AGit
Owner

@⁠BaggyALPHA on GitHub · 2026-11-25 09:28 UTC · original
BaggyALPHA:diag/skip-pipelines-says-so → main · +47 −3 · 2 files · 1 commits · open

Claimed in #1633.

The problem

VICTORY_SKIP_PIPELINES is 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:

  • a DRED dump, and only of whichever list happened to be dumped;
  • the frame report's rates, dropped {:.0} and dropped {:.1}/frame, which round a handful of dropped draws across many frames to 0.

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.

  1. Where the switch reads its hashes, once: the hashes it accepted. A list refused in full prints no hashes, next to the existing per-hash warning.
  2. The first draw or dispatch each hash drops, once per hash — not once per draw.
  3. The frame report's per-reason line keeps the absolute count beside the rate: dropped 31 (1.0/frame) ... : skipped shader <hash> instead of dropped 1.0/frame ....

Verification

RTX 3080 (driver 621.24), Ryzen 7 5800X, Windows 11 26300, on main 940d32f.

Tests. cargo test -p victory-gpu --features diagnostics --locked: 145 passed, 2 failed; the same two fail on main 940d32f in a separate target directory (144 passed, 2 failed) — descriptor::host::tests::dynamic_slots_are_held_until_released and memory::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 new pipeline::tests::a_skip_is_reported_once_per_hash is synthetic and needs no GPU.

clippy -p victory-gpu --all-targets -- -D warnings clean with and without the feature; cargo xtask policy 182 files ok; rustfmt --check produces the same per-file diff counts as main (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:

WARN  VICTORY_SKIP_PIPELINES expects 16-digit shader hashes hash="nothexdigits123"
INFO  VICTORY_SKIP_PIPELINES: skipping their draws and dispatches hashes=["dfafaf...", "58d926..."]
INFO  VICTORY_SKIP_PIPELINES: skipped a draw or dispatch hash="dfafaf..."
INFO  VICTORY_SKIP_PIPELINES: skipped a draw or dispatch hash="58d926..."
INFO  dropped 31 (1.0/frame) without a host pipeline: skipped shader 58d926...

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 touches pipeline.rs as 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.

**@⁠BaggyALPHA** on GitHub · 2026-11-25 09:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/2273) `BaggyALPHA:diag/skip-pipelines-says-so` → `main` · +47 −3 · 2 files · 1 commits · open Claimed in [#1633](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633). ## The problem `VICTORY_SKIP_PIPELINES` is 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: - a DRED dump, and only of whichever list happened to be dumped; - the frame report's rates, `dropped {:.0}` and `dropped {:.1}/frame`, which round a handful of dropped draws across many frames to `0`. 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](https://git.gtahub.st/github/Marvisak--VIctory/issues/1968). ## The change Three lines, all behind `diagnostics`; nothing about *what* gets skipped changes. 1. Where the switch reads its hashes, once: the hashes it accepted. A list refused in full prints no hashes, next to the existing per-hash warning. 2. The first draw or dispatch each hash drops, once per hash — not once per draw. 3. The frame report's per-reason line keeps the absolute count beside the rate: `dropped 31 (1.0/frame) ... : skipped shader <hash>` instead of `dropped 1.0/frame ...`. ## Verification RTX 3080 (driver 621.24), Ryzen 7 5800X, Windows 11 26300, on `main` `940d32f`. **Tests.** `cargo test -p victory-gpu --features diagnostics --locked`: **145 passed, 2 failed**; the same two fail on `main` `940d32f` in a separate target directory (**144 passed, 2 failed**) — `descriptor::host::tests::dynamic_slots_are_held_until_released` and `memory::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 new `pipeline::tests::a_skip_is_reported_once_per_hash` is synthetic and needs no GPU. `clippy -p victory-gpu --all-targets -- -D warnings` clean with and without the feature; `cargo xtask policy` 182 files ok; `rustfmt --check` produces the same per-file diff counts as `main` (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: ``` WARN VICTORY_SKIP_PIPELINES expects 16-digit shader hashes hash="nothexdigits123" INFO VICTORY_SKIP_PIPELINES: skipping their draws and dispatches hashes=["dfafaf...", "58d926..."] INFO VICTORY_SKIP_PIPELINES: skipped a draw or dispatch hash="dfafaf..." INFO VICTORY_SKIP_PIPELINES: skipped a draw or dispatch hash="58d926..." INFO dropped 31 (1.0/frame) without a host pipeline: skipped shader 58d926... ``` 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 touches `pipeline.rs` as well; whichever lands first, I will rebase this onto it ([my rebase notes for that PR](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1320)). 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.
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 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:00:38 +00:00
Author
Owner

@⁠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 onto f3578e3. Still diagnostics-only, and which draws are skipped does not change:

  • skip_hashes() in crates/victory-gpu/src/pipeline.rs logs the hashes it accepted, once.
  • note_drop now takes the skip from main's per-pipeline skipped_shader field (#1320) and logs the first skip of each hash once through first_time, a set touched only on skipped draws.
  • The frame report in host.rs (Meter) prints the absolute drop count beside the per-frame rate, divided by main's report_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: check passing on this head.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 13:31 UTC · [original](https://github.com/Marvisak/VIctory/pull/2273#issuecomment-7163893358) · edited 2026-11-25 22:24 UTC <!-- victory-triage v1 head=8bf864dd4885db30eabc973c2843f2dceb3cd7cc verdict=merge-candidate at=2026-11-25T22:27:30Z --> Automated triage for the maintainers. **Merge candidate.** Re-reviewed at `8bf864d`, rebased onto `f3578e3`. Still diagnostics-only, and which draws are skipped does not change: - `skip_hashes()` in `crates/victory-gpu/src/pipeline.rs` logs the hashes it accepted, once. - `note_drop` now takes the skip from main's per-pipeline `skipped_shader` field (#1320) and logs the first skip of each hash once through `first_time`, a set touched only on skipped draws. - The frame report in `host.rs` (`Meter`) prints the absolute drop count beside the per-frame rate, divided by main's `report_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: `check` passing on this head. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-25 22:12 UTC · original

Rebased onto main f3578e3. 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:

  • #1320 landed with the skip set computed once at pipeline creation and stored on the host pipeline (host.skipped_shader in pipeline/make.rs, 57f13cf) rather than looked up per drop, so the once-per-hash line now hangs off that field in note_drop.
  • #2110 renamed the frame report's divisor to 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.
  • Untouched main f3578e3, 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_released and memory::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 untouched main, 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_hash asserts the once-per-hash predicate behind the line, not the emitted tracing output, 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).

**@⁠BaggyALPHA** on GitHub · 2026-11-25 22:12 UTC · [original](https://github.com/Marvisak/VIctory/pull/2273#issuecomment-7176080459) Rebased onto `main` `f3578e3`. 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: - #1320 landed with the skip set computed once at pipeline creation and stored on the host pipeline (`host.skipped_shader` in `pipeline/make.rs`, `57f13cf`) rather than looked up per drop, so the once-per-hash line now hangs off that field in `note_drop`. - #2110 renamed the frame report's divisor to `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**. - Untouched `main` `f3578e3`, 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_released` and `memory::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 untouched `main`, 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_hash` asserts the once-per-hash predicate behind the line, not the emitted `tracing` output, 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).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2273/head:github-bot/gh-2273'
git switch 'github-bot/gh-2273'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2273'
git switch 'github-bot/gh-2273'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2273'
git switch 'github-bot/gh-2273'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2273'
git switch 'main'
git merge --squash 'github-bot/gh-2273'
git switch 'main'
git merge --ff-only 'github-bot/gh-2273'
git switch 'main'
git merge 'github-bot/gh-2273'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2273
No description provided.