d3d12: time the mirror and shadow sync as a submit profile stage #507
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/507"
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 brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-29T17:27:11Z.
Summary
Before each batch the provider copies CPU writes into the constant-buffer mirrors and, on hosts that can't import section-backed game memory, into every live shadow copy. That ran outside every submit profile stage, so it only showed up as batch time nothing else explained. gtb-sbe measured it at 80–160 ms per direct batch on RADV in #472. It now has its own
mirrorstage inTUXBOX_SUBMIT_PROFILE.Tested
cargo check --tests --target x86_64-pc-windows-msvcfor runtime/d3d12tuxbox.py checkon RTX 3080 Ti: (fill in after the run)🤖 Generated with Claude Code
https://claude.ai/code/session_01KP1nQKEc17PvmrwfPtLi8Z
Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-29T17:32:30Z.
This overlaps #498, which adds the same stage as
Stage::Shadowand also speeds up the sync. The only extra here is timing the CBV mirror snapshot, which is normally empty. Happy to close this in favour of #498.Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-29T20:19:45Z.
Closing in favour of #498, which is merged and adds the same
Stage::Shadowtiming. Thanks for offering, and for the CBV mirror snapshot idea: if that snapshot ever turns out not to be empty in practice, a small PR timing just that would be welcome.Pull request closed