Help wanted: per-pass GPU timings to rank what's slow #40
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#40
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@ThatRecompDev on GitHub · 2026-11-25 16:23 UTC · original
on the GPU side we know a few things are expensive (wave64 mesh shaders in the superstep form, #35) but we don't have per-pass GPU timings yet, so we can't rank what to fix.
what would help:
background:
docs/dxil-backend.md,docs/shader-translation.md,docs/d3d12x-pipelines.md.@ThatRecompDev on GitHub · 2026-11-25 16:52 UTC · original
started on this. there's now a
--gpu-timingsflag (on a branch, lands on main soon): it puts a timestamp query at the start of each pass (a run of work between render target changes, or where draws switch to dispatches), named after the pass's first shader, and reads them back a bit later so nothing waits on the GPU. the sample line then gets something like "gpu over N frames: queue #1 busy X ms/frame (meshlet_culling~... 2.4 ms, PS_... 1.1 ms, ...)", top 10 per queue.we'll turn it on in the next world boot and post the ranking here. PIX comparisons still very welcome if anyone has a setup
@ThatRecompDev on GitHub · 2026-11-26 11:38 UTC · original
--gpu-timingsdoes this now: timestamps around each pass, summed per frame per queue, plus queue overlap and idle time and the work shape of each dispatch, all in the sample lineit's been driving the perf work for a few days (DefragHeap stuck at its loop cap, the indirect clamp, the depth pre-pass), so closing this