GPU timing: reuse the timestamp readback for slow-list reports #3623
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!3623
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3623"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 23:13 UTC · original
andrewpozdnakov7-jpg:codex2/gpu-timing-single-read→main· +9 −10 · 1 files · 1 commits · openThe GPU timing summary maps and sorts the command timestamps. When a list was reported as slow, the warning mapped and sorted them again. Its threshold was checked after the first report, so time spent processing timestamps could also make a short list look slow.
Record the list's wall time before processing the samples, then reuse the same sorted samples for the aggregate and the six command lines.
I ran two synthetic lists, seven copies each, on Windows with app-local WARP 1.0.22 and D3D12 Agility 1.620.2. I used temporary controlled delays to separate reporting cost from list wait time.
The real readback still produced all 14 expected words. Both versions reported all 14 commands in aggregate and printed six command lines for the delayed wait.
Coordination claim
AI-assisted with OpenAI Codex.
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 23:14 UTC · original
On Windows with app-local WARP, both versions read the same 14 words from two synthetic copy lists and included all 14 command notes in the aggregate. When I injected 80 ms into reporting, the wall time recorded for the lists was under 1 ms in both versions.
63bcca4still printed two slow-list warnings and mapped four times.8f5927eprinted zero warnings and mapped twice.When I moved the same delay to the first list's wait, both versions printed one warning and six command lines for that list. Mappings dropped from three to two. The temporary instrumentation was removed. The diagnostics GPU suite passed 246 repository tests and the SDK identity check, with one ignored. Both strict Clippy configurations and the asset policy passed. Windows CI for this head
Please keep the Git author on a cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if this work is folded into another commit.AI-assisted with OpenAI Codex.
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 23:42 UTC · original
I checked the interaction with #3622's timestamp cap and #3313's single-list reporting on
63bcca4. The two verified integration trees,bc29b83and147681a, merge cleanly. The resulting branch keeps all three exact PR heads. Integration branch49ff87dOn app-local WARP 1.0.22 with Agility 1.620.2, I submitted a long list alongside a two-command list. I tested 4,096 and 4,098 notes in the long list and injected a 75 ms wait on that list to exercise the warning path. A separate query heap bracketed a synthetic 1 MiB copy after the sampled commands.
In both note-count cases, the endpoint for the oversized list stayed before the tail copy. Both lists returned the expected bytes. The single-list reset probe and the existing 2 / 4 / 4 submission-count fixture also passed. The diagnostics GPU suite passed 246 tests. The controlled delay and map counters stayed local. AI-assisted with Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.