Use dedicated threads for the shader object creation. Bypasses the deadlock possibility.

This commit is contained in:
Henrik Rydgård 2023-01-31 12:25:29 +01:00
parent 1437c2f707
commit d7605c6877

View File

@ -106,7 +106,7 @@ static Promise<VkShaderModule> *CompileShaderModuleAsync(VulkanContext *vulkan,
if (singleThreaded) {
return Promise<VkShaderModule>::AlreadyDone(compile());
} else {
return Promise<VkShaderModule>::Spawn(&g_threadManager, compile, TaskType::CPU_COMPUTE);
return Promise<VkShaderModule>::Spawn(&g_threadManager, compile, TaskType::DEDICATED_THREAD);
}
}