GPU timing: report lists with unavailable timestamps #3650

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/3650 into main
andrewpozdnakov7-jpg commented 2026-11-28 02:26:57 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5535802136 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3650). Originally posted by [andrewpozdnakov7-jpg](https://github.com/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.
andrewpozdnakov7-jpg commented 2026-11-28 02:27:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T02:27:20Z.


Verified d7c8e68428173217324ebfd671c928e3e70fc275 against 63bcca43c6a00a758510398fa43096ce7e4f7df0. 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]>

<!-- greyfinch-sync:Marvisak/VIctory:comment:7232373274 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3650#issuecomment-7232373274). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T02:27:20Z. --- Verified `d7c8e68428173217324ebfd671c928e3e70fc275` against `63bcca43c6a00a758510398fa43096ce7e4f7df0`. 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]>`
Dukestar69 commented 2026-11-28 02:47:40 +00:00 (Migrated from github.com)

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 including host::gpu_timing_distinguishes_empty_and_unavailable_timestamps, skipping the pre-existing origin/main RTX 5090 failure)
  • cargo clippy -p victory-gpu --all-targets -- -D warnings and --features diagnostics --all-targets -- -D warnings both passed with 0 warnings
  • cargo xtask policy passed (191 files ok)

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6095255570 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3650#pullrequestreview-6095255570). Originally posted by [Dukestar69](https://github.com/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 including `host::gpu_timing_distinguishes_empty_and_unavailable_timestamps`, skipping the pre-existing `origin/main` RTX 5090 failure) - `cargo clippy -p victory-gpu --all-targets -- -D warnings` and `--features diagnostics --all-targets -- -D warnings` both passed with 0 warnings - `cargo xtask policy` passed (`191 files ok`) Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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/3650:upstream-pr/3650'
git switch 'upstream-pr/3650'

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/3650'
git switch 'upstream-pr/3650'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3650'
git switch 'upstream-pr/3650'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3650'
git switch 'main'
git merge --squash 'upstream-pr/3650'
git switch 'main'
git merge --ff-only 'upstream-pr/3650'
git switch 'main'
git merge 'upstream-pr/3650'
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!3650
No description provided.