From 8d36f0a0cf85956d669a9d527bcb1ad435128d74 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 29 Apr 2019 10:51:39 +0300 Subject: [PATCH] - tuned internal MoltenVK settings for better performance See https://github.com/KhronosGroup/MoltenVK/issues/581#issuecomment-487293665 --- src/posix/cocoa/i_video.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index fb835f9db..bac7a136f 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -386,6 +386,11 @@ public: setenv("MVK_CONFIG_FORCE_LOW_POWER_GPU", "1", 0); } + // The following settings improve performance like suggested at + // https://github.com/KhronosGroup/MoltenVK/issues/581#issuecomment-487293665 + setenv("MVK_CONFIG_SYNCHRONOUS_QUEUE_SUBMITS", "0", 0); + setenv("MVK_CONFIG_PRESENT_WITH_COMMAND_BUFFER", "0", 0); + try { m_vulkanDevice = new VulkanDevice();