GPU timing: reuse the timestamp readback for slow-list reports #3623

Open
github-bot wants to merge 1 commit from github-bot/gh-3623 into main AGit
Owner

@⁠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 · open

The 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.

Injected delay Maps before / after Slow-list warnings before / after
Reporting for both lists 4 / 2 2 / 0
Waiting for the first list 3 / 2 1 / 1

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:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/3623) `andrewpozdnakov7-jpg:codex2/gpu-timing-single-read` → `main` · +9 −10 · 1 files · 1 commits · open The 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. | Injected delay | Maps before / after | Slow-list warnings before / after | | --- | ---: | ---: | | Reporting for both lists | 4 / 2 | 2 / 0 | | Waiting for the first list | 3 / 2 | 1 / 1 | 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](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633) AI-assisted with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 23:17:39 +00:00
Author
Owner

@⁠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. 63bcca4 still printed two slow-list warnings and mapped four times. 8f5927e printed 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:14 UTC · [original](https://github.com/Marvisak/VIctory/pull/3623#issuecomment-7229991190) 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. `63bcca4` still printed two slow-list warnings and mapped four times. `8f5927e` printed 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](https://github.com/Marvisak/VIctory/actions/runs/46081307922/job/140780678789) 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.
Author
Owner

@⁠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, bc29b83 and 147681a, merge cleanly. The resulting branch keeps all three exact PR heads. Integration branch 49ff87d

On 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.

Build Timestamp maps per submission Reported commands Slow-list warnings / detail lines
#3622 + #3313, DRED off 3 4,097 1 / 6
All three, DRED off 2 4,097 1 / 6
All three, DRED on 2 4,097 1 / 6

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.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 23:42 UTC · [original](https://github.com/Marvisak/VIctory/pull/3623#issuecomment-7230343346) I checked the interaction with #3622's timestamp cap and #3313's single-list reporting on `63bcca4`. The two verified integration trees, `bc29b83` and `147681a`, merge cleanly. The resulting branch keeps all three exact PR heads. [Integration branch `49ff87d`](https://github.com/andrewpozdnakov7-jpg/VIctory/tree/review/gpu-timing-tail-readback) On 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. | Build | Timestamp maps per submission | Reported commands | Slow-list warnings / detail lines | | --- | ---: | ---: | ---: | | #3622 + #3313, DRED off | 3 | 4,097 | 1 / 6 | | All three, DRED off | 2 | 4,097 | 1 / 6 | | All three, DRED on | 2 | 4,097 | 1 / 6 | 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.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3623/head:github-bot/gh-3623'
git switch 'github-bot/gh-3623'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3623'
git switch 'github-bot/gh-3623'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3623'
git switch 'github-bot/gh-3623'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3623'
git switch 'main'
git merge --squash 'github-bot/gh-3623'
git switch 'main'
git merge --ff-only 'github-bot/gh-3623'
git switch 'main'
git merge 'github-bot/gh-3623'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!3623
No description provided.