D3D12.X: XCL_DUMP_ON=<file> dumps the next frames each time the file appears #3458
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3458"
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 lucsoft on 2026-11-29T20:06:24Z.
XCL_DUMP_TARGETSdumps the first busy frames, or the first ones afterXCL_DUMP_AFTER_Sseconds. Whether a given second lands on the scene you want to look at depends on load times and on how fast you get there. In practice the dump usually misses it, and every miss costs a restart.XCL_DUMP_ON=<file>lets the dump wait for a file instead:touchit at the scene, and the next frames are dumped. You can ask again later in the same run.What is in it
crates/xcl/src/hle/d3d12x/targets.rs:XCL_DUMP_ON=<file>.framesframes with at leastworkdraws and dispatches are dumped. Both values come fromXCL_DUMP_TARGETS, which stays required.touchask for exactly one dump.XCL_DUMP_AFTER_Sis not used whenXCL_DUMP_ONis set.Z:\tmp\dumpfor/tmp/dump.a_file_asks_for_one_dump_and_is_looked_for_every_fifteenth_present. It covers the check cadence, that the file is removed, that one file asks once, and that the file trigger does not useXCL_DUMP_AFTER_S.XCL_DUMP_TARGETSparagraph inREADME.md.Without
XCL_DUMP_ON, nothing changes.Tested
x86_64-pc-windows-gnu.cargo build --release -p xclandcargo test --release -p xcl --no-runsucceed on this head.targetsunit tests, run under Wine 11.21 (xcl-….exe targets::): 11 passed, 0 failed, 0 ignored, including the new one. The full workspace suite was not run.XCL_DUMP_ON=Z:\tmp\xclq\dump-now XCL_DUMP_TARGETS=2000,3,24, twotouches in one run, about 150 frames apart. Eachtouchdumped 3 frames with 24 targets each (frames 2370–2373 and 2524–2526), and the file was removed both times. No dump happened in between.Regression run
No
xcl-smokeblocks: I have no Windows machine to runscripts/smoke.ps1on. The change does nothing unlessXCL_DUMP_ONis set.main:
not run
PR:
not run
Not tested
AI use
🤖 Generated with Claude Code