From 985892bfec92cd37baf887caa6c9931f05eaca53 Mon Sep 17 00:00:00 2001 From: reduz Date: Fri, 18 Dec 2020 20:52:43 -0300 Subject: [PATCH] Turn off robust buffer access by default. It can be a performance bottleneck in some hardware. --- drivers/vulkan/vulkan_context.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp index 855c8a2d68b..1f4092745a7 100644 --- a/drivers/vulkan/vulkan_context.cpp +++ b/drivers/vulkan/vulkan_context.cpp @@ -493,6 +493,8 @@ Error VulkanContext::_create_physical_device() { // features based on this query vkGetPhysicalDeviceFeatures(gpu, &physical_device_features); + physical_device_features.robustBufferAccess = false; //turn off robust buffer access, which can hamper performance on some hardware + #define GET_INSTANCE_PROC_ADDR(inst, entrypoint) \ { \ fp##entrypoint = (PFN_vk##entrypoint)vkGetInstanceProcAddr(inst, "vk" #entrypoint); \