upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authortraeb0n <masonbartelme@gmail.com>2026-11-21 22:19:11 -0600
committertraeb0n <masonbartelme@gmail.com>2026-11-22 09:19:29 -0600
commit9df4eda200b6cd7b8b33dd6f8bc84d681d2c7a29 (patch)
treeb2a7c168e48971b4490cd7d77c8d1079518c3518 /runtime/src/pe_loader.cpp
parent6a6704df1592e1dc4a3215ddf1423a78adb52045 (diff)
Runtime: VulkanQueue keeps its PreparedList storage between executions
execute built a new std::vector<PreparedList> on every call, so every command's detail::Prepared entry (1288 bytes on main now) was made in fresh memory and freed again: replay_cpu_bench measures that at 274-292 ns per command on an i7-14700K, against 85 ns refilled in kept storage, over half of the layer's whole CPU cost per command. The queue now keeps the vector as a member (per queue, like its command buffers: one execute at a time on a queue, as acquire() and submit() already assume) and resizes it to the list count; prepare refills each list's entries in place, where the per-entry vectors also keep their capacity. replay_cpu_bench mirrors the change and reports both floors (entries in kept storage and made fresh). Its frame goes from 425 to 194 ns per command (a 21,504-command frame from 9.1 ms to 4.2 ms). d3d12_vulkan_device_test executes {B, A}, then {B} alone, and checks that only B ran the second time: with storage that only grows, a stale A is replayed after B and the test fails (checked). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions