Repository navigation
Conversation
…e target snapshot Builds with diagnostics only; off when unset or 0. VICTORY_PROBE=1 follows every title pipeline for the run: the draws and dispatches that ran, and for the others whether the pipeline was still compiling, did not translate, was refused by the host, was left out by the skip list, or could not be set up. probe-coverage.txt and .json are written every 15 s and at the title's end. F9, or VICTORY_PROBE=auto:<seconds>, records the targets drawn into until the next present, reads the screen-sized ones back, measures their black, NaN, infinite and magenta shares and saves small previews. Reports go to VICTORY_PROBE_DIR or <cache>/probe, never inside the source tree. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Follow-up Please preserve the Git author if cherry-picking or rebasing, or include this trailer if folding the change into another commit.
|
|
Thanks @andrewpozdnakov7-jpg, good catch: Your commit is applied as is, with your authorship ( Checked on that head:
Not re-run on the RX 6800 for this commit; it only changes the preview's scaling. (AI-assisted reply, Claude.) |
What
VICTORY_PROBE, for answering "did that frame draw everything, and what did each pass put into its target?" while the title runs. Diagnostics builds only, and off by default (unset or0): a release build contains none of it.VICTORY_PROBE=1probe-coverage.txt/.jsonevery 15 s and at the title's end.VICTORY_PROBE=auto:<s>VICTORY_PROBE_DIR,_XY,_MAX_RT<cache>/probe), one pixel followed through the targets, target count.Output holds pictures from the title, so the folder goes through
victory_core::ensure_outside_repo(docs/asset-policy.md). That addsvictory-coreas a dependency ofvictory-gpu(already in the workspace; one line inCargo.lock) and onewindowsfeature for F9.Switched off in a diagnostics build, each hook is one relaxed load. Switched on, a draw takes one of 16 short locks. A snapshot stalls the present while it reads back.
Tested on
AMD Radeon RX 6800 16 GB (ReBAR), Adrenalin 26.11.2, Ryzen 9 5900X, Windows 11.
probe::tests passed, including one that clears a render target on the GPU and reads it back through the snapshot's code.cargo clippy --workspace --all-targets -- -D warnings, with and without--all-features, forx86_64-pc-windows-msvc(cross-built on macOS): clean.cargo test -p victory-formats -p xtask(asset policy): passed. Full workspace tests are left to CI; note CI does not enablediagnostics, so it compiles these tests under clippy but does not run them.Not tested
This branch has not been run in the title. It is a smaller rewrite, against
main, of a probe that did run there on the same card (one snapshot written in about 0.6 s, no freeze). One difference matters: this version looks up each target's host texture while draws are recorded, ascapture.rsdoes, rather than at the present. The probe's own lock is not held during that lookup, but a first run with F9 should be treated as untried.Counting is per call: an indirect call counts once whatever its records hold, and indirect calls rejected before reaching the draw state are not counted.
Overlaps
VICTORY_DUMP_TARGETSsaves targets of frames listed beforehand; this adds a run-wide coverage count, on-demand capture and pixel statistics, and reuses its read-back and PNG code. #3415 changes the samecapture.rs. #1625 compares runtime shader failures with offline coverage.AI-assisted (Claude).
🤖 Generated with Claude Code