Repository navigation
GPU diagnostics: record per-draw samples on selected capture frames - #829
Open
Harveyweiii wants to merge 1 commit into
Open
Harveyweiii wants to merge 1 commit into
Harveyweiii wants to merge 1 commit into
Conversation
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.
While 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.