Diagnostics: request a frame capture while the title is running #896

Manually merged
github merged 1 commit from github-bot/gh-896 into main 2026-11-29 08:22:33 +00:00 AGit
Owner

@⁠Yoshi-233 on GitHub · 2026-11-28 08:43 UTC · original
Yoshi-233:diagnostics/request-frame-capture → main · +93 −2 · 3 files · 1 commits · merged 2026-11-29 08:16 UTC

This adds an on-demand trigger to the existing Windows diagnostics capture. It is useful for views that are hard to reproduce at a predetermined frame number, such as the submerged edge in #739.

  1. Launch a diagnostics build with VICTORY_CAPTURE=<existing directory> and VICTORY_CAPTURE_ON_REQUEST=1. Add VICTORY_DUMP_TARGETS=1 if intermediate targets are needed.
  2. When the scene is visible, create an empty next-frame.request in that directory. The present path checks at most four times a second and consumes the file once.
  3. Read the frame number from capturing the requested frame. The existing capture code writes its normal PNG, operation list and any enabled target dumps. Create the file again to request another sample.

The request selects present counter + 2 since recording for + 1 may already have started. A queued present can still recognise an earlier selection after a new request is armed. The trigger uses the same numbering as VICTORY_CAPTURE_FRAMES; correlation with independent upscaler evaluations still needs the corresponding logs.

Validation: The Windows capture tests include creating and consuming two markers, polling an absent marker, and recognising both selected frames while excluding their neighbours. With the earlier implementation of the same trigger on a 4070 Ti SUPER, four requests in one session produced PNGs, operation lists and target dumps at 14967, 15864, 18052 and 18670. The underwater pictures were at 15864 and 18052.

**@⁠Yoshi-233** on GitHub · 2026-11-28 08:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/896) `Yoshi-233:diagnostics/request-frame-capture` → `main` · +93 −2 · 3 files · 1 commits · merged 2026-11-29 08:16 UTC This adds an on-demand trigger to the existing Windows diagnostics capture. It is useful for views that are hard to reproduce at a predetermined frame number, such as the submerged edge in #739. 1. Launch a diagnostics build with `VICTORY_CAPTURE=<existing directory>` and `VICTORY_CAPTURE_ON_REQUEST=1`. Add `VICTORY_DUMP_TARGETS=1` if intermediate targets are needed. 2. When the scene is visible, create an empty `next-frame.request` in that directory. The present path checks at most four times a second and consumes the file once. 3. Read the frame number from `capturing the requested frame`. The existing capture code writes its normal PNG, operation list and any enabled target dumps. Create the file again to request another sample. The request selects present counter + 2 since recording for + 1 may already have started. A queued present can still recognise an earlier selection after a new request is armed. The trigger uses the same numbering as `VICTORY_CAPTURE_FRAMES`; correlation with independent upscaler evaluations still needs the corresponding logs. **Validation**: The Windows capture tests include creating and consuming two markers, polling an absent marker, and recognising both selected frames while excluding their neighbours. With the earlier implementation of the same trigger on a 4070 Ti SUPER, four requests in one session produced PNGs, operation lists and target dumps at 14967, 15864, 18052 and 18670. The underwater pictures were at 15864 and 18052.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:29:45 +00:00
github manually merged commit 05b5d3c02a into main 2026-11-29 08:22:33 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!896
No description provided.