Draw trace: hardware counters around each traced draw and ExecuteIndirect #53
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/ThatRecompDev--five-star-recomp!53
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/53/head"
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?
@Sr-0w on GitHub · 2026-11-26 03:59 UTC · original
Sr-0w:diagnostics/draw-pipeline-statistics→main· +213 −1 · 4 files · 1 commits · merged 2026-11-26 06:50 UTCWhat
Each draw and ExecuteIndirect the draw trace logs is now wrapped in a
PIPELINE_STATISTICS1query and anOCCLUSIONquery (DrawQueries). The results are resolved into a readback buffer and logged with the probes two presents later:With
--mesh-launch, the number of launches and drops so far follows.Why
The world's G-buffer stays empty. The trace and the mesh probe showed that the mesh programs run and declare primitives, but the pixels could be lost at several stages: after the mesh shader, at the clipper, at the pixel shader, or at the depth and stencil tests. These counters name the stage directly.
What it shows (a retail game, world frame, RX 7800 XT,
397a2335)MS_VS_TransformD, terrain,OctaSLODimpostors,PositionOnlypre-pass (64–66 draws per run, clamp path and--mesh-launchalike)On the same draws, the mesh probe (
--probe-pipeline MS_VS_Transform) shows groups that giveSetMeshOutputCounts2–128 primitives, cull none of them, and write finite positions inside the view. The groups run and declare primitives, but the rasterizer receives none. A separate issue will follow with the details.In game
Diagnostics only. The world is still reached with its lights but without geometry, at about 2–10 fps.
Tests
DrawQueriesTests: the counters are named inD3D12_QUERY_DATA_PIPELINE_STATISTICS1order, and the occlusion count comes last.🤖 Generated with Claude Code
@ThatRecompDev on GitHub · 2026-11-26 07:30 UTC · original
really useful, the counters are exactly what we were missing
the architecture tests tripped on StatementGrouping in the DrawTrace constructor, so I added a blank line on merge (
c8cfcb7). merged