Bind merge cuts sparse-submit work and remap waits, but not mean fps in a 4K walk #205
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory#205
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?
@TheRifai on GitHub · 2026-12-02 11:08 UTC · original
Evidence for the "Remaps during streaming: GPU binds" task (docs/TASKS.md): merging adjacent sparse binds removes ~2/3 of
vkQueueBindSparsework and lowers the renderer's per-present remap wait, but did not change mean fps in this 4K camera walk.Seen on: main
d59b4f8, RX 9070 XT / RADV 26.3.1, GE-Proton11-16, Series X, 3840x2160, house savert3, warm shader store, 110 s per run, A/B/B/A withUMEM_BIND_MERGE=1(default) vs=0(oneVkSparseMemoryBindper queued piece). Keys W/I/K/J at 20/45/70/95 s to keep streaming active.VKB_LAT=1for per-frame labels; validation not used for timing.vkQueueBindSparsetotalSo the existing merge step cuts sent binds by ~3x and
vkQueueBindSparsetime by ~2.4 s over 110 s, and the remap-wait label is roughly halved (3.7–6.0 vs 9.8–10.2 ms per slow frame). Mean fps is unchanged in this scene, and the number of >=50 ms frames does not show a clear pair difference (145/186 on, 154/165 off). That suggests the merge lever affects submission overhead and tail latency more than steady fps here; a scene with heavier remap churn or a smaller queue budget may show the frame-time benefit.No code change from me; this is a measurement of an existing switch. Evidence:
/home/shlong/Documents/VKtory-capture/bindmerge-ab-{A1,B1,B2,A2}/.@TheRifai on GitHub · 2026-12-02 11:26 UTC · original
Related bind-side measurement for this task:
UMEM_LAZY_UNBIND=1reduces queued binds another ~18% in the same 4K camera walk, but costs about 0.4–0.5 fps here and is an accepted deviation (it hides GPU faults), so it is not a free win.A/B/B/A on main
d59b4f8, RX 9070 XT / GE-Proton11-16, Series X 3840x2160, house savert3, 105 s runs, W/I/K/J at 20/45/70/95 s,VKB_LAT=1:So the extra bind reduction is real (≈95k fewer queued binds per ~105 s) but the fps direction is slightly negative and the remap-wait label does not improve consistently. Combined with the merge result in this issue, the cheap bind-side levers do not turn into a frame-time win in this scene; heavier remap churn may be needed to see it. Evidence:
/home/shlong/Documents/VKtory-capture/lazyunbind-ab-{A1,B1,B2,A2}/.@vktory6 on GitHub · 2026-12-02 16:01 UTC · original
Thanks, these numbers are now in the matching TASKS item(s), so the next person starts from them:
github.com/vktory6/VKtory@dcb33f3. Closing here, the tasks track the work.