Report sampled frame content from optional frame dumps #188
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!188
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/188/head"
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?
@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 UTCd3d12.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.
@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 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.