framegate: turn VICTORY_CAPTURE dumps into per-build PASS/FAIL JSON #3283

Open
opened 2026-11-26 15:54:39 +00:00 by Hcosse · 2 comments
Hcosse commented 2026-11-26 15:54:39 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by Hcosse on 2026-11-26T15:54:39Z.


I built framegate (MIT, https://github.com/Hcosse/framegate): it turns frame captures into per-build PASS/FAIL JSON, so visual regressions stop relying on eyeballing screenshots.

Point it at your existing VICTORY_CAPTURE dumps, no integration:

  • per-frame defect probabilities: black_screen, severe_artifacts, missing_surfaces, crushed_lighting
  • Broken/Acceptable/Clean lighting_quality score, optional --reference comparison
  • deterministic JSON + exit codes 0/1/2, CI-friendly
  • run mode launches the target itself: crash detection, RAM/VRAM caps — your ~33 GB commit / ~10 GB VRAM budgets map straight onto max_ram_gb / max_vram_gb

Checks and thresholds live in one JSON config; frames are judged by a vision model (Jev via the TypeSafe SDK). Validated on real emulator regression captures (RPCS3/shadPS4 issues): clean → PASS, pitch-black models → FAIL, stretched vertices → FAIL.

Where it fits: your status table gets comparable numbers per build ("pink band", missing RT shadows — as probabilities/scores, not impressions), and PortWatch VI's race (https://portwatch-vi.xyz/#race) could cite a committed, dated JSON per build instead of self-reported screenshots.

Useful here? Name the failure modes you chase most and I'll tune the default checks.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6630370491 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3285). Originally posted by [Hcosse](https://github.com/Hcosse) on 2026-11-26T15:54:39Z. --- I built **framegate** (MIT, https://github.com/Hcosse/framegate): it turns frame captures into per-build PASS/FAIL JSON, so visual regressions stop relying on eyeballing screenshots. Point it at your existing `VICTORY_CAPTURE` dumps, no integration: - per-frame defect probabilities: `black_screen`, `severe_artifacts`, `missing_surfaces`, `crushed_lighting` - Broken/Acceptable/Clean `lighting_quality` score, optional `--reference` comparison - deterministic JSON + exit codes 0/1/2, CI-friendly - `run` mode launches the target itself: crash detection, RAM/VRAM caps — your ~33 GB commit / ~10 GB VRAM budgets map straight onto `max_ram_gb` / `max_vram_gb` Checks and thresholds live in one JSON config; frames are judged by a vision model (Jev via the TypeSafe SDK). Validated on real emulator regression captures (RPCS3/shadPS4 issues): clean → PASS, pitch-black models → FAIL, stretched vertices → FAIL. Where it fits: your status table gets comparable numbers per build ("pink band", missing RT shadows — as probabilities/scores, not impressions), and PortWatch VI's race (https://portwatch-vi.xyz/#race) could cite a committed, dated JSON per build instead of self-reported screenshots. Useful here? Name the failure modes you chase most and I'll tune the default checks.
Ingenioeren commented 2026-11-26 18:47:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Ingenioeren on 2026-11-26T18:47:05Z.


I checked the capture interface on public main 63bcca4 with synthetic pixels. The existing writer produced 8-bit RGB PNGs at half width and height from padded BGRA input. An independent PNG readback matched the expected pixels and verified the chunk CRCs. The reduction selects every other row and pixel, so a small feature can disappear before a classifier sees it. Capture writer

One pairing detail matters for --reference. With VICTORY_CAPTURE_WORLD=5, I injected first-world-frame indices of 90 and 233 in separate test processes. The corresponding captures came out as frame-95.png and frame-238.png; both directories also contained the automatic frame-64.png. The filenames contain absolute frame numbers. The world anchor is the first present with at least 500 host draws, so build reports would benefit from recording the anchor and requested offset alongside the filename. Scene alignment still needs a check if the change affects draws. Selection and anchor

These results cover the upstream capture format and naming. The probe used synthetic pixels and made no calls to a vision service.

AI-assisted verification with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7200847354 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3285#issuecomment-7200847354). Originally posted by [Ingenioeren](https://github.com/Ingenioeren) on 2026-11-26T18:47:05Z. --- I checked the capture interface on public main `63bcca4` with synthetic pixels. The existing writer produced 8-bit RGB PNGs at half width and height from padded BGRA input. An independent PNG readback matched the expected pixels and verified the chunk CRCs. The reduction selects every other row and pixel, so a small feature can disappear before a classifier sees it. [Capture writer](https://github.com/Marvisak/VIctory/blob/63bcca43c6a00a758510398fa43096ce7e4f7df0/crates/victory-gpu/src/capture.rs#L61-L99) One pairing detail matters for `--reference`. With `VICTORY_CAPTURE_WORLD=5`, I injected first-world-frame indices of 90 and 233 in separate test processes. The corresponding captures came out as `frame-95.png` and `frame-238.png`; both directories also contained the automatic `frame-64.png`. The filenames contain absolute frame numbers. The world anchor is the first present with at least 500 host draws, so build reports would benefit from recording the anchor and requested offset alongside the filename. Scene alignment still needs a check if the change affects draws. [Selection and anchor](https://github.com/Marvisak/VIctory/blob/63bcca43c6a00a758510398fa43096ce7e4f7df0/crates/victory-gpu/src/capture.rs#L19-L58) These results cover the upstream capture format and naming. The probe used synthetic pixels and made no calls to a vision service. AI-assisted verification with OpenAI Codex.
andrewpozdnakov7-jpg commented 2026-11-28 03:05:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T03:05:02Z.


I reproduced the capture issue with generated pixels on 63bcca43. Two one-pixel marks in a padded 5×3 frame disappeared from the default 2×1 thumbnail. With VICTORY_CAPTURE_FULL_RES=1 in #3652, both marks survived in the decoded 5×3 PNG for RGBA and BGRA input. Unset and 0 gave byte-identical thumbnails to main. Windows Clippy and the workspace tests passed in CI, and the PR is ready for review.

If reusing the patch, please retain its Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding it into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7232782912 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3285#issuecomment-7232782912). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T03:05:02Z. --- I reproduced the capture issue with generated pixels on `63bcca43`. Two one-pixel marks in a padded 5×3 frame disappeared from the default 2×1 thumbnail. With `VICTORY_CAPTURE_FULL_RES=1` in [#3652](https://github.com/Marvisak/VIctory/pull/3652), both marks survived in the decoded 5×3 PNG for RGBA and BGRA input. Unset and `0` gave byte-identical thumbnails to main. Windows Clippy and the workspace tests passed in [CI](https://github.com/Marvisak/VIctory/actions/runs/46101301832), and the PR is ready for review. If reusing the patch, please retain its Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding it into another commit. AI-assisted with OpenAI Codex.
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#3283
No description provided.