GPU timing: reuse the timestamp readback for slow-list reports #3623
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
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.
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.
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.
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.
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,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.
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 base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo 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.#[test]functions in the diff.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#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_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.