Scripts: the smoke block can't tell a black screen from a working title #717
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#717
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Chrysana on GitHub · 2026-11-24 04:02 UTC · original
What happens
A PR can pass the regression check while the title draws nothing. On #541 at
3d7604b(RX 9070 XT), every frame of the 60 s run was black (14 frame captures, 0 % of sampled pixels lit, againstmain, which is lit from ~21 s on), but itsxcl-smokeblock looked healthy:pr_check.pywould pass it: more frames thanmain, lower peak commit. Details: https://github.com/ivall/xcl/pull/541 (my comment there; imnicho saw the same on an RTX 5080, and ryosen0 reproduced it on an RTX 3060 Ti: the captures "caught what the smoke block can't"). It is still black at #541's current head24635dbon this card (90 s, empty DXIL cache, 21/21 captures dark), so this isn't a one-off.Proposal (I'd like to know whether this direction is wanted before writing it)
XCL already has what's needed:
XCL_FRAME_DUMP=Nsamples every N-th frame (its log line already says… – 0 of 518400 samples not black), andreport.jsonkeeps the last one asd3d12.last_frame_dump(sampled_pixels,non_dark_samples).scripts/smoke.ps1setsXCL_FRAME_DUMP=120and adds one line to the block fromreport.json, e.g.lit at end: 100 %(non_dark_samples / sampled_pixels, orn/awhen no frame was sampled or the format couldn't be decoded). The block staysxcl-smoke v1;pr_check.pyreadskey: valuelines, so older blocks without the line still parse.scripts/pr_check.py: when both blocks have the line, refuse a PR whose last frame is dark (say under 1 %) whilemain's is lit (say over 50 %). Thresholds are up to you; a warning first would also work.Cost, measured: on
main91f9a5e(RX 9070 XT, 60 s, back to back),XCL_FRAME_DUMP=120gave 1171 and 1183 frames against 1176 and 1167 without it, which is within run-to-run noise. Each sampled frame writes a quarter-size BMP into the logs folder (10–14 per 60 s run here).Not covered by this: a title that's black for a legitimate reason at the 60 s mark (a fade, a loading screen); a picture that's lit but wrong. A last-frame check only catches "nothing drawn".
If this is wanted, I'll open a PR for it (
smoke.ps1+pr_check.py+ a test of the new line, small).AI use: Claude Code (Claude Opus 5.5) measured the runs and wrote this issue.
@Luxuryig on GitHub · 2026-11-24 04:32 UTC · original · edited 2026-11-24 04:38 UTC
Opened as #747. Thresholds are the ones in the issue: refuse when the PR frame is under 1% and main is over 50%. A missing line or
n/astill passes.@OrangeCrane1738 on GitHub · 2026-11-24 16:38 UTC · original · edited 2026-11-24 18:10 UTC
Another case the check lets through, from regression runs I made today: both runs died about a second after starting and still produced blocks the check accepts.
On this PC (no Gaming Services), builds without #235 route XAsync to a system runtime that failed to initialise (
XGameRuntime PC: initialization → 0x80070424, thenXAsync: PC). On mainbeaa245and on #821's headf9ef768the title then stopped about a second in with a fail-fast (Windows' "stack-based buffer overrun" dialog). The log shows only empty activity lines after that untilXCL_RUN_SECONDSended the run at 25 s. Both blocks (RTX 5060 Ti):Two things let it through:
smoke.ps1counts crashes fromunhandled exception|process ends with status; a fail-fast never reaches XCL's handler, so it reads 0.pr_check.pycompares frames onlyif mf: when main's block shows 0 frames the comparison is skipped, so two dead runs pass.Requiring main's block to show frames (or at least warning when either block shows 0) would catch this, alongside the lit-pixel check proposed here.
AI use: Claude Opus 5.5 (in the Claude app) helped analyse the logs and draft this