startup: every constant buffer view and descriptor copy goes through the stand-in, and it costs frame rate #3430
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#3430
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-29 01:37 UTC · original
Since #3213 the stand-in sets byte +0x18 of the guest device, so the title calls device slot 17 for every constant
buffer view and slot 24 for every
CopyDescriptorsSimpleinstead of writing the descriptors itself. Inthe main executable's startup run (#870) copies are one of the two
note_lockwriters: #3392 measured ~59,000exclusive
note_copytakes per second late in the load, next to ~118,000 view creations.The stand-in does not need these calls:
readers already decode (the branch of
indirect_table_bufferfor words that are not a view token).a plain copy of the token.
X2W_D3D12_RELEASE_RETIRED:retire_view_refscounts descriptor slotsthat name a released texture. With copies made in title memory, nothing counts them. D3D12 leaves this to the
application (a resource must stay alive while its descriptors are in use), and the stand-in never frees a wrapper,
so a stale token binds null rather than another resource.
Measured with the byte left at 0 and retirement at the release fences (proposed in #3431): Windows 10 22H2,
i7-4790K, RTX 3080 Ti, NVIDIA 32.0.16.1047, release,
main212d4b5f, merged switches (#2949, #2977, #3028, #3315),250 s, scripted input, two pairs (off/on/on/off):
Null bindings per 1,000 draws, refusals and retained texture memory stay in the same range; no device removal.
This report was prepared with AI assistance (Claude); the runs are mine.