From b80101411f34ae3a8922d545692ddb352f3f70c6 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 12 Jul 2024 17:05:07 +0200 Subject: [PATCH] Optimize Vulkan Memory Allocator to not use mutex as it's synced by engine to safely access resources --- Source/Engine/GraphicsDevice/Vulkan/GPUDeviceVulkan.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Engine/GraphicsDevice/Vulkan/GPUDeviceVulkan.cpp b/Source/Engine/GraphicsDevice/Vulkan/GPUDeviceVulkan.cpp index 9b6d4ba2c..7a6c560ab 100644 --- a/Source/Engine/GraphicsDevice/Vulkan/GPUDeviceVulkan.cpp +++ b/Source/Engine/GraphicsDevice/Vulkan/GPUDeviceVulkan.cpp @@ -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;