Files
WoWee/include/rendering
Kelsi e75aa8269f perf(vk): reuse the immediate command buffer across submits
beginSingleTimeCommands was calling vkAllocateCommandBuffers and pairing
it with vkFreeCommandBuffers in endSingleTimeCommands — one allocate/
free round-trip every immediate submit. The M2 frustum-cull dispatch
fires this every frame in beginFrame(), so that's two kernel calls per
frame just to obtain and release a command buffer.

The immediate pool already has RESET_COMMAND_BUFFER_BIT set, so cache
one buffer and reset it on each begin instead. The pool destruction
in shutdown reclaims the underlying allocation automatically.
2026-05-14 12:31:22 -07:00
..