D3D12.X: XCL_ACTIVITY counts and times the per-draw buffer mirror sync #2381
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?
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-25T17:43:17Z.
Part of #2389. This should come first, so the other parts have before/after numbers.
list_x::sync_title_buffers(crates/xcl/src/hle/d3d12x/list_x.rs:3539onmain3f4495a) runs on everyDrawInstanced/DrawIndexedInstanced(bind.rs:476,bind.rs:489) andDrawIndexedX(list_x.rs:3831) once any buffer mirror exists. Nothing reports what it costs today: the only output is the "mirrored at …, each draw copies what it reads" warning when a mirror is made.Proposal: add one line to
XCL_ACTIVITY=1every 2 s with, for the last 2 s:instances > 1/ unknown-range branch)readable()calls that fell back toVirtualQuery(more than 16 pages)This is diagnostics only, with no change in behaviour. With it, a run in a title's world shows whether the other parts are worth doing.
Found by code reading with Claude Code (Claude Opus 5.5); not measured yet.