diff options
| author | thedarkcr0w <vladcrow02@gmail.com> | 2026-11-23 19:46:43 +0100 |
|---|---|---|
| committer | TreXito <81475944+TreXito@users.noreply.github.com> | 2026-11-23 21:41:03 +0000 |
| commit | bc14ec5dd9a680893b95b8940225cea12b870efa (patch) | |
| tree | b63fb708be23d9ddd2e044895570628d71cf180b /runtime/src/pe_loader.cpp | |
| parent | da6270710142bfc1190f204fc87ed6eae13225dc (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/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions