Report sampled frame content from optional frame dumps #185
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/188"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by pauliusdotpro on 2026-11-23T19:41:30Z.
d3d12.presentscan 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_dumptoreport.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 withXCL_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.xcl run: failures 0, exit 0, one presentation, andlast_frame_dump: nullwith dumps off.git diff --check: passed. Full workspace test suite not run. No game files or game-derived fixtures included.AI-assisted with Codex.
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 maineaa36b6: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 inpresent.rs; both test modules are kept.