diff options
| author | 2023-09-16 22:36:43 -0400 | |
|---|---|---|
| committer | 2023-09-16 22:36:43 -0400 | |
| commit | 4d28e60694d5f065e81e50657a7d8472f6f3da20 (patch) | |
| tree | 5c1e7f23f9696e64fe05059fa61696d7a5fe0211 /src | |
| parent | Merge pull request #11521 from t895/content-install-fix (diff) | |
| parent | android: Use 1 worker for shader compilation for all devices (diff) | |
| download | yuzu-4d28e60694d5f065e81e50657a7d8472f6f3da20.tar.gz yuzu-4d28e60694d5f065e81e50657a7d8472f6f3da20.tar.xz yuzu-4d28e60694d5f065e81e50657a7d8472f6f3da20.zip | |
Merge pull request #11523 from t895/shader-workers
android: Use 1 worker for shader compilation for all devices
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index 4f83a88e1..a1ec1a100 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& device | |||
| 294 | texture_cache{texture_cache_}, shader_notify{shader_notify_}, | 294 | texture_cache{texture_cache_}, shader_notify{shader_notify_}, |
| 295 | use_asynchronous_shaders{Settings::values.use_asynchronous_shaders.GetValue()}, | 295 | use_asynchronous_shaders{Settings::values.use_asynchronous_shaders.GetValue()}, |
| 296 | use_vulkan_pipeline_cache{Settings::values.use_vulkan_driver_pipeline_cache.GetValue()}, | 296 | use_vulkan_pipeline_cache{Settings::values.use_vulkan_driver_pipeline_cache.GetValue()}, |
| 297 | workers(device.GetDriverID() == VK_DRIVER_ID_QUALCOMM_PROPRIETARY | 297 | #ifdef ANDROID |
| 298 | ? 1 | 298 | workers(1, "VkPipelineBuilder"), |
| 299 | : (std::max(std::thread::hardware_concurrency(), 2U) - 1), | 299 | #else |
| 300 | "VkPipelineBuilder"), | 300 | workers(std::max(std::thread::hardware_concurrency(), 2U) - 1, "VkPipelineBuilder"), |
| 301 | #endif | ||
| 301 | serialization_thread(1, "VkPipelineSerialization") { | 302 | serialization_thread(1, "VkPipelineSerialization") { |
| 302 | const auto& float_control{device.FloatControlProperties()}; | 303 | const auto& float_control{device.FloatControlProperties()}; |
| 303 | const VkDriverId driver_id{device.GetDriverID()}; | 304 | const VkDriverId driver_id{device.GetDriverID()}; |