GPU timing: stop the last sample at the untimed tail #3622

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

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 23:01 UTC · original
andrewpozdnakov7-jpg:codex2/gpu-timing-cap-endpoint → main · +7 −3 · 1 files · 1 commits · open

The timestamp heap has 4,096 slots for up to 4,095 command intervals. On longer lists, the last sampled interval used to end at list close. The report then put the work from the untimed tail under the last sampled command's name.

Take the terminal timestamp when the first untimed command is noted. When the whole list fits, take it at close as before.

I tested lists with 0, 1, 4,095, 4,096 and 4,098 notes on Windows with app-local WARP 1.0.22 and D3D12 Agility 1.620.2. Each list performed a 1 MiB synthetic copy bracketed by a separate query heap. On 63bcca4, the last sample included that copy for both oversize lists. With this change it ends before the copy, and the three controls still end after the copy. All copies returned the expected bytes.

Coordination claim

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 23:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/3622) `andrewpozdnakov7-jpg:codex2/gpu-timing-cap-endpoint` → `main` · +7 −3 · 1 files · 1 commits · open The timestamp heap has 4,096 slots for up to 4,095 command intervals. On longer lists, the last sampled interval used to end at list close. The report then put the work from the untimed tail under the last sampled command's name. Take the terminal timestamp when the first untimed command is noted. When the whole list fits, take it at close as before. I tested lists with 0, 1, 4,095, 4,096 and 4,098 notes on Windows with app-local WARP 1.0.22 and D3D12 Agility 1.620.2. Each list performed a 1 MiB synthetic copy bracketed by a separate query heap. On `63bcca4`, the last sample included that copy for both oversize lists. With this change it ends before the copy, and the three controls still end after the copy. All copies returned the expected bytes. [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:06:32 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 23:02 UTC · original

On app-local WARP 1.0.22 with D3D12 Agility 1.620.2, a separate query heap bracketed each 1 MiB copy. At 4,096 and 4,098 notes, the original terminal timestamp fell after the copy. On f6989c6 it falls before the copy, with 4,095 samples in both cases. At 0, 1 and 4,095 notes the endpoint still falls after the copy. Readback matched in all five cases.

The diagnostics GPU suite passed 246 repository tests and one SDK identity check, with one ignored test. 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:02 UTC · [original](https://github.com/Marvisak/VIctory/pull/3622#issuecomment-7229821220) On app-local WARP 1.0.22 with D3D12 Agility 1.620.2, a separate query heap bracketed each 1 MiB copy. At 4,096 and 4,098 notes, the original terminal timestamp fell after the copy. On `f6989c6` it falls before the copy, with 4,095 samples in both cases. At 0, 1 and 4,095 notes the endpoint still falls after the copy. Readback matched in all five cases. The diagnostics GPU suite passed 246 repository tests and one SDK identity check, with one ignored test. Both strict Clippy configurations and the asset policy passed. [Windows CI for this head](https://github.com/Marvisak/VIctory/actions/runs/46080096415/job/140776825466) 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:17 UTC · original

#3622 at f6989c6 and #3313 at 7592bb4 both touch the note-recording hunk. The resolved branch keeps #3313's timing-only note path and #3622's terminal timestamp at the first untimed note. The merge preserves both heads on 63bcca4. Integration branch bc29b83

I reused one command list across four submissions, resetting it between runs. A separate query heap bracketed a 1 MiB synthetic copy. On #3313 alone and on the combined branch, the GPU summary counted 4,095, 2, 4,095 and 4,095 commands for 4,096, 2, 4,098 and 4,095 notes. On #3313 alone all four endpoints fell after the copy. On the merge, the endpoints for both oversized lists fell before the copy. The two shorter lists still ended after it, including the short list immediately after a reset. Every readback byte matched.

The combined result passed with DRED off and on, using app-local WARP 1.0.22 and Agility 1.620.2. The existing #3313 timing fixture also passed (2 / 4 / 4 commands). The diagnostics GPU library suite passed 246 tests with three ignored. The reset probe stayed local. AI-assisted with Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 23:17 UTC · [original](https://github.com/Marvisak/VIctory/pull/3622#issuecomment-7230021911) #3622 at `f6989c6` and #3313 at `7592bb4` both touch the note-recording hunk. The resolved branch keeps #3313's timing-only note path and #3622's terminal timestamp at the first untimed note. The merge preserves both heads on `63bcca4`. [Integration branch `bc29b83`](https://github.com/andrewpozdnakov7-jpg/VIctory/tree/review/gpu-timing-tail-single-list) I reused one command list across four submissions, resetting it between runs. A separate query heap bracketed a 1 MiB synthetic copy. On #3313 alone and on the combined branch, the GPU summary counted 4,095, 2, 4,095 and 4,095 commands for 4,096, 2, 4,098 and 4,095 notes. On #3313 alone all four endpoints fell after the copy. On the merge, the endpoints for both oversized lists fell before the copy. The two shorter lists still ended after it, including the short list immediately after a reset. Every readback byte matched. The combined result passed with DRED off and on, using app-local WARP 1.0.22 and Agility 1.620.2. The existing #3313 timing fixture also passed (2 / 4 / 4 commands). The diagnostics GPU library suite passed 246 tests with three ignored. The reset probe 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/3622/head:github-bot/gh-3622'
git switch 'github-bot/gh-3622'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3622'
git switch 'github-bot/gh-3622'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3622'
git switch 'github-bot/gh-3622'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3622'
git switch 'main'
git merge --squash 'github-bot/gh-3622'
git switch 'main'
git merge --ff-only 'github-bot/gh-3622'
git switch 'main'
git merge 'github-bot/gh-3622'
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!3622
No description provided.