diff --git a/src/dxvk/dxvk_pipecompiler.cpp b/src/dxvk/dxvk_pipecompiler.cpp index 6c4ae6cf1..0a18211ed 100644 --- a/src/dxvk/dxvk_pipecompiler.cpp +++ b/src/dxvk/dxvk_pipecompiler.cpp @@ -4,10 +4,12 @@ namespace dxvk { DxvkPipelineCompiler::DxvkPipelineCompiler() { - constexpr uint32_t threadCount = 1u; + uint32_t sysCpuCount = dxvk::thread::hardware_concurrency(); + uint32_t threadCount = sysCpuCount > 2 ? sysCpuCount - 2 : 1; - Logger::debug(str::format( - "DxvkPipelineCompiler: Using ", threadCount, " workers")); + Logger::info(str::format( + "DxvkPipelineCompiler: Using ", + threadCount, " workers")); // Start the compiler threads m_compilerThreads.resize(threadCount);