VERY experimental Nintendo Switch 2 emulator
C++
android: Use 1 worker for shader compilation for all devices
Charles Lombardoa8e3f2652d77
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cppindex 4f83a88e18..a1ec1a1002 100644--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp@@ -294,10 +294,11 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, const Device& devicetexture_cache{texture_cache_}, shader_notify{shader_notify_},use_asynchronous_shaders{Settings::values.use_asynchronous_shaders.GetValue()},use_vulkan_pipeline_cache{Settings::values.use_vulkan_driver_pipeline_cache.GetValue()},- workers(device.GetDriverID() == VK_DRIVER_ID_QUALCOMM_PROPRIETARY- ? 1- : (std::max(std::thread::hardware_concurrency(), 2U) - 1),- "VkPipelineBuilder"),+#ifdef ANDROID+ workers(1, "VkPipelineBuilder"),+#else+ workers(std::max(std::thread::hardware_concurrency(), 2U) - 1, "VkPipelineBuilder"),+#endifserialization_thread(1, "VkPipelineSerialization") {const auto& float_control{device.FloatControlProperties()};const VkDriverId driver_id{device.GetDriverID()};