Proposal: a shared frame capture & replay tool with a "first diverging pass" report #2368

Open
opened 2026-11-25 12:04:37 +00:00 by KENAJBBY · 1 comment
KENAJBBY commented 2026-11-25 12:04:37 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by KENAJBBY on 2026-11-25T12:04:37Z.


Graphics fixes are often checked by launching a game, looking at the final image, patching, and launching again. Competing PRs for the same problem are also hard to compare, because there is no common input to test them on.

Idea (no code attached):

  1. Capture a few consecutive frames at the console command level, before translation: command lists, the memory they read, descriptors, shaders, indirect arguments.
  2. Replay the capture offline in seconds, without launching the game.
  3. After every render pass, dump the render targets and compare two builds (or a build against a CPU reference of the console ISA), then report the first pass that diverges and the shader that ran there.

Shader and ray-tracing fixes could then be verified in seconds, and competing PRs compared on the same capture. Timing issues (late uploads, flicker, frame pacing) would still need a live run.

Other emulators have used this approach for years (Dolphin's FIFO player, Xenia's trace viewer), and some building blocks already exist in this ecosystem (frame capture, translated-shader diffs, a CPU ISA interpreter).

If something like this already exists, a pointer would be appreciated.

Drafted with the help of an AI assistant.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6604061293 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2370). Originally posted by [KENAJBBY](https://github.com/KENAJBBY) on 2026-11-25T12:04:37Z. --- Graphics fixes are often checked by launching a game, looking at the final image, patching, and launching again. Competing PRs for the same problem are also hard to compare, because there is no common input to test them on. Idea (no code attached): 1. **Capture** a few consecutive frames at the console command level, before translation: command lists, the memory they read, descriptors, shaders, indirect arguments. 2. **Replay** the capture offline in seconds, without launching the game. 3. After every render pass, **dump the render targets** and compare two builds (or a build against a CPU reference of the console ISA), then report **the first pass that diverges** and the shader that ran there. Shader and ray-tracing fixes could then be verified in seconds, and competing PRs compared on the same capture. Timing issues (late uploads, flicker, frame pacing) would still need a live run. Other emulators have used this approach for years (Dolphin's FIFO player, Xenia's trace viewer), and some building blocks already exist in this ecosystem (frame capture, translated-shader diffs, a CPU ISA interpreter). If something like this already exists, a pointer would be appreciated. *Drafted with the help of an AI assistant.*
Marvisak commented 2026-11-25 19:06:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T18:49:02Z.


Automated triage for the maintainers.

Nothing like this exists in main yet. The closest tool is VICTORY_CAPTURE in diagnostics builds (crates/victory-gpu/src/capture.rs). It saves presented frames as PNG at power-of-two frame numbers. With VICTORY_CAPTURE_FRAMES or VICTORY_CAPTURE_WORLD, it also saves the listed frames and traces their draws at debug level. It records no command lists or memory, and it cannot replay anything.

The request fits the project's scope as offline developer tooling. One constraint for any design: a capture holds title memory, shaders and descriptors, so captures could only be compared locally on each person's own machine and could never be shared in this repository.

Kept open as a request.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7171439765 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2370#issuecomment-7171439765). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T18:49:02Z. --- <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T12:04:37Z at=2026-11-25T18:56:00Z --> Automated triage for the maintainers. Nothing like this exists in main yet. The closest tool is `VICTORY_CAPTURE` in diagnostics builds (`crates/victory-gpu/src/capture.rs`). It saves presented frames as PNG at power-of-two frame numbers. With `VICTORY_CAPTURE_FRAMES` or `VICTORY_CAPTURE_WORLD`, it also saves the listed frames and traces their draws at debug level. It records no command lists or memory, and it cannot replay anything. The request fits the project's scope as offline developer tooling. One constraint for any design: a capture holds title memory, shaders and descriptors, so captures could only be compared locally on each person's own machine and could never be shared in this repository. Kept open as a request. --- _Generated by [Claude Code](https://claude.ai/code)_
Sign in to join this conversation.
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#2368
No description provided.