GPU timing: report peak duration per command #3651
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3651"
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-28T02:43:49Z.
Change
Add the largest individual command sample to each pipeline entry in the
VICTORY_GPU_TIMINGreport. The existing ranking still uses cumulative GPU time. This makes it possible to distinguish a large timestamp interval from several shorter calls with a similar total. It also covers commands on lists below the slow-list warning threshold.The report in #3590 shows two indirect entries with similar call counts and a significant share of the aggregate. The new number describes one timestamp interval in the reporting window, in milliseconds.
Verification
AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-28T02:47:05Z.
Review: APPROVED
LGTM — verified on Windows (RTX 5090):
cargo test -p victory-gpu --features diagnostics --lib host::passed (35/35, skipping the pre-existingorigin/mainRTX 5090 failure)cargo clippy -p victory-gpu --all-targets -- -D warningsand--features diagnostics --all-targets -- -D warningsboth passed with 0 warningscargo xtask policypassed (191 files ok)Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T02:47:33Z.
Verified
32847d9917e605fba86d8bfe62f75de04a4f9546against63bcca43using the exact reporting functions and generated timestamps. In the first two-frame window, totals and command counts match main. The entry ranked first by total time reported a 26.00 ms maximum and the next reported 48.00 ms. A zero-duration sample reported 0.00 ms. The next window reported a 3.00 ms maximum for the previously 48.00 ms entry.The Windows CI run passed both Clippy stages, including the diagnostics build. The test stage had 230 GPU tests pass, one ignored and one failure.
views_bound_while_another_slot_gets_its_texture_do_not_waithit the existingboth madeassertion tracked in #2585 and #2861. This commit touches only the timing summary. A maintainer rerun is the next CI step.For a matched hardware sample, the combined #3534, #3622 and #3651 branch and its synthetic verification are linked in #3534.
Please keep the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T07:38:38Z.
I checked the failed Windows job and combined this head with fyernald's test-only #2585 in 50da667. The only difference from this PR is the prepare hook inside the descriptor tests.
I exercised the two exact hook implementations with a forced thread ordering. On the original head, an unrelated thread consumed the hook and the assertion failed before the owner ran. With #2585, the owner consumed it exactly once. Both heads also passed 30 out of 30 local runs of the 15 descriptor tests at eight threads. The combined branch passed all 12 additional full diagnostic GPU runs, each with 246 passed and one ignored. The original had 11 completed runs and one process exit without a test assertion. Strict GPU Clippy and the asset policy passed on the combined head. These local runs used generated fixtures with the software adapter option.
Next step for a maintainer is to merge #2585 and rerun the Windows check with main included. Please retain fyernald's Git authorship if applying the test fix directly.
AI-assisted with OpenAI 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.