mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Use all but two available threads for async pipeline compilation
This commit is contained in:
parent
6532302e34
commit
5cc2c219dd
@ -4,10 +4,12 @@
|
|||||||
namespace dxvk {
|
namespace dxvk {
|
||||||
|
|
||||||
DxvkPipelineCompiler::DxvkPipelineCompiler() {
|
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(
|
Logger::info(str::format(
|
||||||
"DxvkPipelineCompiler: Using ", threadCount, " workers"));
|
"DxvkPipelineCompiler: Using ",
|
||||||
|
threadCount, " workers"));
|
||||||
|
|
||||||
// Start the compiler threads
|
// Start the compiler threads
|
||||||
m_compilerThreads.resize(threadCount);
|
m_compilerThreads.resize(threadCount);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user