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

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/3623 into main
andrewpozdnakov7-jpg commented 2026-11-27 23:13:52 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T23:13:52Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5534305501 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3623). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-27T23:13:52Z. --- 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://github.com/Marvisak/VIctory/issues/1633#issuecomment-7229900214) AI-assisted with OpenAI Codex.
andrewpozdnakov7-jpg commented 2026-11-27 23:14:56 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T23:14:56Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7229991190 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3623#issuecomment-7229991190). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-27T23:14:56Z. --- 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.
andrewpozdnakov7-jpg commented 2026-11-27 23:42:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T23:42:10Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7230343346 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3623#issuecomment-7230343346). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-27T23:42:10Z. --- 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.
futurepro62 commented 2026-11-29 18:31:52 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-29T18:31:52Z.


Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head 8f5927e (on its base 63bcca4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), dxil.dll from Windows SDK 10.0.26100 (the loader's default), debug.
  • cargo build --workspace --locked, then cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 866 passed, 0 failed, 10 ignored.
  • No new #[test] functions in the diff.
  • --skip leaves out tests that fail on main 63bcca4 on this card too, not because of this PR: heap_direct_texture_reads_mark_their_heap_index ends the victory-shader test process with 0xc0000005 (#2571), so without the skip the rest of that crate never reports; dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views and the two stride_tests hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); gathers_at_a_level_match_the_hardware fails on lane 0 (#1744).

Not tested

  • AMD (the tests take the default adapter), a release build, the title (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7260555675 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3623#issuecomment-7260555675). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-29T18:31:52Z. --- Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head `8f5927e` (on its base `63bcca4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), `dxil.dll` from Windows SDK 10.0.26100 (the loader's default), debug. - `cargo build --workspace --locked`, then `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware`: **866 passed, 0 failed, 10 ignored**. - No new `#[test]` functions in the diff. - `--skip` leaves out tests that fail on main `63bcca4` on this card too, not because of this PR: `heap_direct_texture_reads_mark_their_heap_index` ends the `victory-shader` test process with `0xc0000005` (#2571), so without the skip the rest of that crate never reports; `dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views` and the two `stride_tests` hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); `gathers_at_a_level_match_the_hardware` fails on lane 0 (#1744). **Not tested** - AMD (the tests take the default adapter), a release build, the title (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3623:upstream-pr/3623'
git switch 'upstream-pr/3623'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3623'
git switch 'upstream-pr/3623'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3623'
git switch 'upstream-pr/3623'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3623'
git switch 'main'
git merge --squash 'upstream-pr/3623'
git switch 'main'
git merge --ff-only 'upstream-pr/3623'
git switch 'main'
git merge 'upstream-pr/3623'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!3623
No description provided.