GPU: keep card meter timestamp pairs through queue completion #975

Open
avt0m4t48 wants to merge 2 commits from upstream-pr/977 into main
avt0m4t48 commented 2026-11-25 14:30:39 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T14:30:39Z.


Fixes #967.

Keep a card-meter timestamp pair reserved for as long as a closed title list or auxiliary list can use it. Record the direct-queue completion fence before submitting the list. The collector waits for that fence and the existing 1.5-second reporting delay before reading a pair. When an uncollected command list is submitted again, its readings are coalesced at the newest fence and reporting restarts from that submission.

The grouped timing path also signals and waits when a submission has no title lists. A copy-sync list can already have gone to the GPU in that case, so the final signal must still cover it.

  • Original Windows WARP test reproduced pair reuse while a closed list remained unsubmitted. A separate regression reproduced the missing fence on a grouped empty submission.
  • On 430a90e, the six card-meter tests passed in the normal and grouped modes. They include a real WARP timestamp resolve and collection, reserved pairs, resubmission, release before completion, and the new empty-group assertion. The relay test reported 12 sends and 12 fetches using the copy queues.
  • Both MSVC target configurations type-checked from Linux, and the Windows asset policy passed. Physical GPU overhead and in-game timing remain unmeasured.

Original pair-reuse reproduction · Empty-group reproduction · Exact-head Windows verification

AI-assisted using Codex.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6606823170 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/977). Originally posted by [avt0m4t48](https://github.com/avt0m4t48) on 2026-11-25T14:30:39Z. --- Fixes #967. Keep a card-meter timestamp pair reserved for as long as a closed title list or auxiliary list can use it. Record the direct-queue completion fence before submitting the list. The collector waits for that fence and the existing 1.5-second reporting delay before reading a pair. When an uncollected command list is submitted again, its readings are coalesced at the newest fence and reporting restarts from that submission. The grouped timing path also signals and waits when a submission has no title lists. A copy-sync list can already have gone to the GPU in that case, so the final signal must still cover it. - Original Windows WARP test reproduced pair reuse while a closed list remained unsubmitted. A separate regression reproduced the missing fence on a grouped empty submission. - On `430a90e`, the six card-meter tests passed in the normal and grouped modes. They include a real WARP timestamp resolve and collection, reserved pairs, resubmission, release before completion, and the new empty-group assertion. The relay test reported 12 sends and 12 fetches using the copy queues. - Both MSVC target configurations type-checked from Linux, and the Windows asset policy passed. Physical GPU overhead and in-game timing remain unmeasured. [Original pair-reuse reproduction](https://github.com/avt0m4t48/victory-fork/actions/runs/45628550967) · [Empty-group reproduction](https://github.com/avt0m4t48/victory-fork/actions/runs/45632885826) · [Exact-head Windows verification](https://github.com/avt0m4t48/victory-fork/actions/runs/45633947265) AI-assisted using Codex.
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/977:upstream-pr/977'
git switch 'upstream-pr/977'

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