From e3c2269b169df36a5e79419c6587374dc82f7653 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Mon, 16 Mar 2026 17:46:32 -0700 Subject: [PATCH] fix: increase descriptor pool sizes to prevent Vulkan crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Terrain pool 16384→65536, WMO pool 8192→32768. The previous sizes were too small for the load/unload radii, causing pool exhaustion and a hard crash when streaming terrain on large maps. --- include/rendering/terrain_renderer.hpp | 2 +- include/rendering/wmo_renderer.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rendering/terrain_renderer.hpp b/include/rendering/terrain_renderer.hpp index f4994792..5bc13252 100644 --- a/include/rendering/terrain_renderer.hpp +++ b/include/rendering/terrain_renderer.hpp @@ -171,7 +171,7 @@ private: // Descriptor pool for material sets VkDescriptorPool materialDescPool = VK_NULL_HANDLE; - static constexpr uint32_t MAX_MATERIAL_SETS = 16384; + static constexpr uint32_t MAX_MATERIAL_SETS = 65536; // Loaded terrain chunks std::vector chunks; diff --git a/include/rendering/wmo_renderer.hpp b/include/rendering/wmo_renderer.hpp index 07f3ac9d..2431628e 100644 --- a/include/rendering/wmo_renderer.hpp +++ b/include/rendering/wmo_renderer.hpp @@ -656,7 +656,7 @@ private: // Descriptor pool for material sets VkDescriptorPool materialDescPool_ = VK_NULL_HANDLE; - static constexpr uint32_t MAX_MATERIAL_SETS = 8192; + static constexpr uint32_t MAX_MATERIAL_SETS = 32768; // Texture cache (path -> VkTexture) struct TextureCacheEntry {