Report sampled frame content from optional frame dumps #188

Manually merged
github merged 1 commit from gh-pr/188/head into gh-pr/188/base 2026-11-26 04:14:25 +00:00
Owner

@⁠pauliusdotpro on GitHub · 2026-11-23 19:41 UTC · original
pauliusdotpro:contribution/frame-dump-report → main · +127 −0 · 3 files · 1 commits · merged 2026-11-23 21:08 UTC

d3d12.presents can increase while every sampled pixel is dark. The optional frame-dump path already counts decoded samples, but that evidence was only in the log and BMP files.

Add d3d12.last_frame_dump to report.json, using the existing readback and count. It records the latest frame index, source dimensions, DXGI format, sample step, sample count, and samples with decoded 8-bit R+G+B > 30. No extra GPU readback or pixel data is added to the report. Intermediate render-target dumps cannot replace the presented-frame sample.

The field stays null until a frame is sampled. An unsupported format has non_dark_samples: null, distinct from a decoded dark sample (0). Older reports still deserialize. The README explains the sampling limits: non-dark content does not establish correct rendering or gameplay. This does not fix rendering or title startup.

Validation on Windows x64, Rust 1.90.0, RTX 3090:

  • cargo test --locked -p xcl --lib frame_dump_tests -- --nocapture: 2 passed, both with default sampling and with XCL_FRAME_DUMP_FULL=1. A CPU-filled mapped buffer on WARP exercises the actual dump decoder, padded footprint, threshold boundary, unsupported format, and intermediate-target exclusion; the other test checks old report compatibility.
  • cargo build --locked --workspace: passed.
  • Ran the repository's synthetic title through xcl run: failures 0, exit 0, one presentation, and last_frame_dump: null with dumps off.
  • git diff --check: passed. Full workspace test suite not run. No game files or game-derived fixtures included.

AI-assisted with Codex.

**@⁠pauliusdotpro** on GitHub · 2026-11-23 19:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/188) `pauliusdotpro:contribution/frame-dump-report` → `main` · +127 −0 · 3 files · 1 commits · merged 2026-11-23 21:08 UTC `d3d12.presents` can increase while every sampled pixel is dark. The optional frame-dump path already counts decoded samples, but that evidence was only in the log and BMP files. Add `d3d12.last_frame_dump` to `report.json`, using the existing readback and count. It records the latest frame index, source dimensions, DXGI format, sample step, sample count, and samples with decoded 8-bit R+G+B > 30. No extra GPU readback or pixel data is added to the report. Intermediate render-target dumps cannot replace the presented-frame sample. The field stays null until a frame is sampled. An unsupported format has `non_dark_samples: null`, distinct from a decoded dark sample (`0`). Older reports still deserialize. The README explains the sampling limits: non-dark content does not establish correct rendering or gameplay. This does not fix rendering or title startup. Validation on Windows x64, Rust 1.90.0, RTX 3090: - `cargo test --locked -p xcl --lib frame_dump_tests -- --nocapture`: 2 passed, both with default sampling and with `XCL_FRAME_DUMP_FULL=1`. A CPU-filled mapped buffer on WARP exercises the actual dump decoder, padded footprint, threshold boundary, unsupported format, and intermediate-target exclusion; the other test checks old report compatibility. - `cargo build --locked --workspace`: passed. - Ran the repository's synthetic title through `xcl run`: failures 0, exit 0, one presentation, and `last_frame_dump: null` with dumps off. - `git diff --check`: passed. Full workspace test suite not run. No game files or game-derived fixtures included. AI-assisted with Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:14:23 +00:00
github manually merged commit af46b71a33 into gh-pr/188/base 2026-11-26 04:14:25 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-23 21:09 UTC · original

Merged (main 6da33fa). Checked on an RX 9070 (RDNA4) with the 22 PRs merged together on main eaa36b6: cargo build --workspace && cargo test --workspace -- --test-threads=4 - 582 unit tests passed, 0 failed (20 ignored), the integration and e2e tests passed too; and the retail game still reaches its first menu (646 frames in 30 s, no device removal). The merge conflicted with #176's window-position test module in present.rs; both test modules are kept.

**@⁠ivall** on GitHub · 2026-11-23 21:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/188#issuecomment-7114078479) Merged (main 6da33fa). Checked on an RX 9070 (RDNA4) with the 22 PRs merged together on main eaa36b6: `cargo build --workspace && cargo test --workspace -- --test-threads=4` - 582 unit tests passed, 0 failed (20 ignored), the integration and e2e tests passed too; and the retail game still reaches its first menu (646 frames in 30 s, no device removal). The merge conflicted with #176's window-position test module in `present.rs`; both test modules are kept.
This discussion has been locked. Commenting is limited to contributors.
No description provided.