upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/vulkan_aftermath.cpp
diff options
context:
space:
mode:
authorthedarkcr0w <vladcrow02@gmail.com>2026-11-23 19:46:43 +0100
committerTreXito <81475944+TreXito@users.noreply.github.com>2026-11-23 21:41:03 +0000
commitbc14ec5dd9a680893b95b8940225cea12b870efa (patch)
treeb63fb708be23d9ddd2e044895570628d71cf180b /runtime/src/vulkan_aftermath.cpp
parentda6270710142bfc1190f204fc87ed6eae13225dc (diff)
d3d12_xs: the placed-buffer registry is keyed by entry id, so a tag removes its entry in O(log n)
Releasing N placed buffers scanned N(N+1)/2 entries under the lock slot 70 takes (shdann's review on #8304). The entries now live in a std::map keyed by their id. Ids only grow, so map order is placement order and slot 70 still walks it backwards for the newest placement; a tag whose entry already went with its device erases nothing. Teardown of 32,768 buffers released newest first: 151.63 ms before (shdann), 3.47 ms after (same loop, MSVC /O2, Windows 11). (cherry picked from commit 335d0a1870a2fd49106289ecb0980b71cd2410c8)
Diffstat (limited to 'runtime/src/vulkan_aftermath.cpp')
0 files changed, 0 insertions, 0 deletions