GPU diagnostics: record per-draw samples on selected capture frames #829
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!829
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-829"
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?
@Harveyweiii on GitHub · 2026-11-25 09:29 UTC · original
Harveyweiii:diagnostics/per-draw-samples→main· +463 −5 · 7 files · 1 commits · openWhile investigating a dark interior in #12, we could see geometry in the depth buffer but could not tell which individual draws contributed. This adds opt-in D3D12 occlusion counts to the existing frame capture.
Set
VICTORY_DRAW_SAMPLES=1, pointVICTORY_CAPTUREat an external directory, and select a frame withVICTORY_CAPTURE_FRAMES. Join the draw-query ID in the ops log to the per-frame TSV to see how many samples passed depth and stencil. Indirect commands have one aggregate count. Later draws can overwrite those samples. Sampled submissions use the synchronous path, so these captures should not be used to benchmark frame time.Verification
Tested against
9376fd6on Windows with an RTX 4070 Ti SUPER. The synthetic 8 × 8 render target returned 0 samples for an empty draw, 12 for a 3 × 4 scissor, and 64 for full coverage. The same test crosses the 256-query heap boundary and checks the two recording frames' TSV rows.cargo test --locked -p victory-gpu --features diagnostics --lib gpu_reports_empty_scissored_and_full_draws -- --nocapturepassed.cargo xtask policypassed (173 files).Related to #12 for diagnostics. The color issue remains open.
@MamaLeVrai on GitHub · 2026-11-25 10:12 UTC · original
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head
0947053intomain9376fd6in a throwaway tree (no conflict).cargo clippy --workspace --all-targets --locked -- -D warningsfails with exactly the errorsmainitself has on this machine (placed_filler_twinsnever used,depth_writtennever read, invictory-gpu); with--all-featuresit fails with the same number of errors asmain(4). This PR adds none and removes none.cargo test --workspace --locked: 540 passed, 0 failed, 10 ignored, two runs (mainalone: 540 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data.AI-assisted (Claude Code); no game data.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.