GPU: log timing counters for occluded presents #196

Open
stritphatographir wants to merge 1 commit from upstream-pr/196 into main
stritphatographir commented 2026-11-26 11:15:39 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by stritphatographir on 2026-11-26T11:15:39Z.


Headless profiling can encounter DXGI_STATUS_OCCLUDED for every present attempt. The successful-present meter then gives no timing data about this work.

Add a diagnostics-only debug event with the frame ID, draw count, and cumulative preparation, readback, and GPU-idle counters. Enable it with VICTORY_LOG=info,victory_gpu::offscreen_frame=debug. The successful-present counter still advances only on S_OK, as introduced in #17.

Validation

  • The existing present-status regression test passed with diagnostics enabled.
  • GPU Clippy passed for all targets and features. The staged asset-policy check passed.

Codex assisted with porting and verification.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6625463166 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/196). Originally posted by [stritphatographir](https://github.com/stritphatographir) on 2026-11-26T11:15:39Z. --- Headless profiling can encounter `DXGI_STATUS_OCCLUDED` for every present attempt. The successful-present meter then gives no timing data about this work. Add a diagnostics-only debug event with the frame ID, draw count, and cumulative preparation, readback, and GPU-idle counters. Enable it with `VICTORY_LOG=info,victory_gpu::offscreen_frame=debug`. The successful-present counter still advances only on `S_OK`, as introduced in #17. ## Validation - The existing present-status regression test passed with diagnostics enabled. - GPU Clippy passed for all targets and features. The staged asset-policy check passed. Codex assisted with porting and verification.
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/196:upstream-pr/196'
git switch 'upstream-pr/196'

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