startup: a 16 MiB table buffer copy is compared in full on every draw under draw_lock; the late load stalls on it #2976
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#2976
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 01:01 UTC · original
In the main executable's startup run (#870), frame rate falls from about 30 fps to 4–9 fps once the post-confirm load starts. Local timers (logging only, not in any PR) put about half of the stand-in's busy threads in waits for
draw_lock, and trace the hold to one buffer copy.Windows 10 22H2, i7-4790K, RTX 3080 Ti, NVIDIA 32.0.16.1047, release on
6ee878d8+ #2949, warm shader cache,run.ps1 -Renderwithout-Translate, scripted input, 250 s. Figures for 150–240 s, as busy threads (summed time per wall second):listtimedraw_lockdraw_lockhelddraw_translated(~490 µs per draw)frame_copyshare of the draw holdframe_copytimeplaced ... aliased), bound from the descriptor table by two vertex shaders.frame_copycuts it to 16 MiB.memcmpagainst the kept bytes (~2.2 ms, ~85 % offrame_copytime). Nearly every comparison matches.frame_copy.Proposed in #2977: an opt-in
X2W_D3D12_TABLE_ALIAS=1that binds the alias for a table buffer view whose whole range lies in an aliased placement. The GPU then reads the bytes at execution, not at record time, as on the console. The default stays as onmain.This report was prepared with AI assistance (Claude); the runs are mine.