D3D12.X: honor XCL_FRAME_DUMP=0 to disable periodic frame dumps #3247
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3247"
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 Saksukella on 2026-11-29T00:02:59Z.
Setting
XCL_FRAME_DUMP=0(orfalse,off, or an empty value) previously fell back to120inframe_dump_due()becausev.parse().ok().filter(|&n| n > 1).unwrap_or(120)mapped0toNoneand then120. This change extractsparse_frame_dump_every()so0,false,off, and empty values disable periodic BMP frame dumps while preservingXCL_FRAME_DUMP=1(every 120th frame) andXCL_FRAME_DUMP=n(n > 1).What is in it
crates/xcl/src/hle/d3d12x/present.rs:parse_frame_dump_every(val: Option<&str>) -> u64and use it inframe_dump_due()so0,false,off, and empty strings return0instead of falling back to120.parse_frame_dump_every_disables_zero_false_off_and_empty.Tested
32.0.32029.2010), AMD Ryzen 9 7900X, 32 GB RAM, Windows 11 Pro (build26200),rustc 1.100.0 (0ef1bc386 2026-11-09); debug (tests) and release (xcl.exe).cargo test --lib -p xcl hle::d3d12x::present -- --test-threads=4: 23 passed, 0 failed, 0 ignored (0.05s), includingparse_frame_dump_every_disables_zero_false_off_and_empty.cargo check --workspace: passed.Regression run
Not tested
cargo test --workspacerun (targetedhle::d3d12x::presentsuite +cargo check --workspace+ 60sTitleID 7952987Asmoke run were executed).AI use
Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-29T01:09:23Z.
merge-check
base:
fa204595a4head:
5179437baemerge: clean (trial merge 7e23fb95e425701fbd4cc270b36d208e7644018b, local, not pushed;
git diff --checkclean)build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 (XCL_DXC_DIR = DXC 1.9.2609) -> 2609 passed, 0 failed, 49 ignored; SKIPPED: 26 (21 no wave64 on this 32-lane GPU, 3 per-lane f16/f32 forms refused (#1426 semantics), 2 no heap windows); failing: none. The new
present::tests::parse_frame_dump_every_disables_zero_false_off_and_emptyran and passed.review: none blocking; whole diff read (
present.rsonly). On main,XCL_FRAME_DUMP=0parses to 0, fails then > 1filter and falls back to 120, so it turns dumps on. With the PR,0, empty,falseandoff(trimmed, case-insensitive) turn them off.1and other non-numbers still mean every 120th frame, andn > 1means every n-th; unset is unchanged (off). An emptyXCL_FRAME_DUMP=also changes from on to off, which matches how other flags here treat an empty value. No script in the repo sets it to0or empty (scratch harnesses that pass0simply don't set it). Nits: the new fn was inserted betweenframe_dump_due's///doc lines andframe_dump_due, so that doc now attaches toparse_frame_dump_every. README (line 411) still describes onlyN > 1.performance: no change when the variable is unset (the default). Title run of the merge (release, scratch/fast-world.py fast profile with
XCL_FRAME_DUMP=0set explicitly): exit 0, 0 crashes, 0 device removals, world entry 96.8 s, peak commit 29,217 MB, 66 WARN lines. The only new WARN kind against a mainfa204595run is the harness's own stop-file stop (with dumps off it stops on the steady timer);failed_pipelines0, no translation errors. 0present: frame N ... written to frame_N.bmplines, where main runs of this harness with dumps on log about 48. I did not run main with=0; that main dumps every 120th frame then is read from the code. Timing differences between runs on this shared machine are noise.verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 5070 Ti 16 GB (driver 610.74, wave32 only), AMD Ryzen 9 9950X, Windows 11 build 26200; rustc 1.99.0, debug test profile, release build for the title run, DXC 1.9.2609 via XCL_DXC_DIR. Claude Code, Claude Opus 5.5: merge, build, suite, title run and full-diff review; this report.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T08:41:49Z.
merge-check claim
head:
5179437baeImported from ivall/xcl. Originally posted by throny on 2026-11-29T09:01:05Z.
merge-check
base:
d8bd9a38head:
5179437baemerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2619 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at
d8bd9a38: 2618 passed, 0 failed, 49 ignored.review: no finding.
XCL_FRAME_DUMPset to 0, empty, false or off now turns the periodic dumps off (on main these meant every 120th frame); nothing else reads the variable. Nit: the new function sits betweenframe_dump_due's doc comment and that function, so the comment now documents the wrong one. The README line on the variable could mention 0.performance: none.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).