mirror of
https://github.com/godotengine/godot
synced 2024-09-04 22:48:26 +00:00
Turn off robust buffer access by default.
It can be a performance bottleneck in some hardware.
This commit is contained in:
parent
bd0dc4d4dd
commit
985892bfec
|
@ -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); \
|
||||
|
|
Loading…
Reference in a new issue