startup: slot 44 copies a 64 KiB root SRV window at every call, but no draw reads the copy #3027
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#3027
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?
@lukaslw-lab on GitHub · 2026-11-27 08:04 UTC · original
In the main executable's startup run (#870), list slot 44 (
SetGraphicsRootShaderResourceView) is called about 23,000 times per second late in the load with title addresses that have no upload mapping. Each call copies a 64 KiB window of title memory into the upload ring (list_root_srv→readable_window+upload_from_title) for the desktop binding.No draw reads that binding:
pass.root_address,source == 2indraw_translated).list_draw's real-pipeline path and an indirect graphics draw on the title's root signature read the desktop binding. A real stream pipeline is built only over a root signature without bindings (build_stream_pipeline,root_without_bindings), and the run logsdraws 0for real-pipeline draws.Windows 10 22H2, i7-4790K, RTX 3080 Ti, NVIDIA 32.0.16.1047, release on
main98e4a2ee, warm shader cache, scripted input, 250 s,X2W_D3D12_RING_RELEASE_AT_SUBMIT=1andX2W_D3D12_TABLE_ALIAS=1, two runs:The copies are also most of the ring traffic behind #2948: without any opt-in switch, deferring them leaves 88 instead of 164,727 null bindings with cause
bufferin the same run.Proposed in #3028: an opt-in
X2W_D3D12_ROOT_SRV_AT_DRAW=1that keeps the address pending at slot 44 and makes the same copy only at a draw that reads the binding. The default stays as onmain.This report was prepared with AI assistance (Claude); the runs are mine.