Calibrate replay GPU timing and report resource usage #2636

Open
vilaris wants to merge 2 commits from upstream-pr/2636 into main
vilaris commented 2026-11-29 15:18:02 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by vilaris on 2026-11-29T15:18:02Z.


What it changes

  • Capture drawing-queue timestamps around original D3D12 submissions. Use the same markers when replaying a compatible capture and report the relative error against a 10% threshold.
  • Report replay process CPU time, resident RAM, private commit, page faults, system pagefile usage, and DXGI local and non-local usage and budgets.
  • End the replay command after 120 seconds by default. Use --timeout-seconds to set another deadline. Expiry returns code 124.
  • Document the synthetic calibration and make replay the first step for graphics validation when it covers the change.

The GPU comparison covers drawing work in the captured submissions. Replay process CPU time and in-game FPS have different measurement scopes.

How it was tested

  • Windows, GeForce RTX 4070, synthetic D3D12 scene with no title required.
  • The replay integration test passed with the two existing diagnostics build fixes applied locally. Those fixes are tracked separately in #2498 and #2593.
  • The original and replayed images matched byte for byte. One run measured 0.061 ms on the original drawing queue and 0.060 ms in replay, a 1.7% difference.
  • CLI smoke test on the synthetic capture: a forced 1-second deadline exited with code 124 in 1.12 seconds, and a normal replay exited with code 0.
  • Staged asset policy and git diff --check passed.

Checked for overlap

  • Searched open pull requests for replay telemetry and touched files. The existing diagnostics build fixes are tracked in the PRs linked above.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5552098510 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2636). Originally posted by [vilaris](https://github.com/vilaris) on 2026-11-29T15:18:02Z. --- ## What it changes - Capture drawing-queue timestamps around original D3D12 submissions. Use the same markers when replaying a compatible capture and report the relative error against a 10% threshold. - Report replay process CPU time, resident RAM, private commit, page faults, system pagefile usage, and DXGI local and non-local usage and budgets. - End the replay command after 120 seconds by default. Use `--timeout-seconds` to set another deadline. Expiry returns code 124. - Document the synthetic calibration and make replay the first step for graphics validation when it covers the change. The GPU comparison covers drawing work in the captured submissions. Replay process CPU time and in-game FPS have different measurement scopes. ## How it was tested - Windows, GeForce RTX 4070, synthetic D3D12 scene with no title required. - The replay integration test passed with the two existing diagnostics build fixes applied locally. Those fixes are tracked separately in #2498 and #2593. - The original and replayed images matched byte for byte. One run measured 0.061 ms on the original drawing queue and 0.060 ms in replay, a 1.7% difference. - CLI smoke test on the synthetic capture: a forced 1-second deadline exited with code 124 in 1.12 seconds, and a normal replay exited with code 0. - Staged asset policy and `git diff --check` passed. ## Checked for overlap - [x] Searched open pull requests for replay telemetry and touched files. The existing diagnostics build fixes are tracked in the PRs linked above.
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/2636:upstream-pr/2636'
git switch 'upstream-pr/2636'

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