GPU timing: report lists with unavailable timestamps #3650
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3650"
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:26:57Z.
The GPU timing summary treats unavailable timestamp readback like a list with zero command intervals. A failed timestamp-frequency query also falls back to 1 Hz. Preserve availability in the readback result and report counts for lists with and without timestamps. Every observed list keeps its wall time.
On a deterministic CPU fixture using the exact readback and aggregation methods, main gives the same aggregate for a valid empty list and a failed readback. The fixed code records two lists with timestamps and one without, retaining all 30 ms of wall time and one genuine zero-duration command. Missing and zero frequency return an unavailable measurement before mapping the buffer.
The accumulator regression and the simulated readback checks passed. Asset policy passed for 191 files.
AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T02:27:20Z.
Verified
d7c8e68428173217324ebfd671c928e3e70fc275against63bcca43c6a00a758510398fa43096ce7e4f7df0. The exact old reader and accumulator give identical results for a valid empty list and a failed map. The updated reader and accumulator reported two lists with timestamps and one without, 30 ms of wall time, and one valid zero-duration command.The CPU fixture also checked an unavailable query heap and missing or zero timestamp frequency. The latter two returned unavailable before any map call. Both tests passed, including the accumulator test included in the PR. Asset policy checked 191 files. The timestamp buffer and device responses in this fixture were simulated.
Please preserve the Git author if cherry-picking or rebasing, or include this trailer if folding the change into another commit.
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-28T02:47:40Z.
Review: APPROVED
LGTM — verified on Windows (RTX 5090):
cargo test -p victory-gpu --features diagnostics --lib host::passed (36/36 includinghost::gpu_timing_distinguishes_empty_and_unavailable_timestamps, 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).
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.