- tuned internal MoltenVK settings for better performance

See https://github.com/KhronosGroup/MoltenVK/issues/581#issuecomment-487293665
This commit is contained in:
alexey.lysiuk 2019-04-29 10:51:39 +03:00
parent 20cc066dc7
commit 8d36f0a0cf

View file

@ -386,6 +386,11 @@ public:
setenv("MVK_CONFIG_FORCE_LOW_POWER_GPU", "1", 0); 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 try
{ {
m_vulkanDevice = new VulkanDevice(); m_vulkanDevice = new VulkanDevice();