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

Open
opened 2026-11-26 05:03:45 +00:00 by github-bot · 1 comment
Owner

@⁠KENAJBBY on GitHub · 2026-11-25 12:04 UTC · original

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.

**@⁠KENAJBBY** on GitHub · 2026-11-25 12:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/2370) 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.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:03:45 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 18:49 UTC · original

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

**@⁠Marvisak** on GitHub · 2026-11-25 18:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/2370#issuecomment-7171439765) <!-- 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)_
This discussion has been locked. Commenting is limited to contributors.
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/Marvisak--VIctory#2370
No description provided.