Report sampled frame content from optional frame dumps #185

Merged
pauliusdotpro merged 1 commit from upstream-pr/188 into main 2026-11-23 21:08:36 +00:00
pauliusdotpro commented 2026-11-23 19:41:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pauliusdotpro on 2026-11-23T19:41:30Z.


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.

<!-- greyfinch-sync:ivall/xcl:issue:6567365820 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/188). Originally posted by [pauliusdotpro](https://github.com/pauliusdotpro) on 2026-11-23T19:41:30Z. --- `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.
upstream-sync closed this pull request 2026-11-24 06:57:34 +00:00
ivall commented 2026-11-24 07:04:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T21:09:18Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7114078479 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/188#issuecomment-7114078479). Originally posted by [ivall](https://github.com/ivall) on 2026-11-23T21:09:18Z. --- 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.
Sign in to join this conversation.
No reviewers
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
xcl-dev/xcl!185
No description provided.