Optimize Vulkan Memory Allocator to not use mutex as it's synced by engine to safely access resources

This commit is contained in:
Wojtek Figat
2024-07-12 17:05:07 +02:00
parent e83097d114
commit b80101411f

View File

@@ -1845,6 +1845,7 @@ bool GPUDeviceVulkan::Init()
#endif
#undef INIT_FUNC
VmaAllocatorCreateInfo allocatorInfo = {};
allocatorInfo.flags = VMA_ALLOCATOR_CREATE_EXTERNALLY_SYNCHRONIZED_BIT;
allocatorInfo.vulkanApiVersion = VULKAN_API_VERSION;
allocatorInfo.physicalDevice = gpu;
allocatorInfo.instance = Instance;