[dxvk] Tweak number of pipeline compiler threads

Gives some 6-core and 8-core CPUs a bit more breathing room, while
also supporting up to 32 workers instead of just 16 to leverage
the new high core count Ryzen CPUs.
parent 47555f1d
Pipeline #991 passed with stage
in 4 minutes and 6 seconds
......@@ -154,12 +154,10 @@ namespace dxvk {
// Use half the available CPU cores for pipeline compilation
uint32_t numCpuCores = dxvk::thread::hardware_concurrency();
uint32_t numWorkers = numCpuCores > 8
? numCpuCores * 3 / 4
: numCpuCores * 1 / 2;
uint32_t numWorkers = ((std::max(1u, numCpuCores) - 1) * 5) / 7;
if (numWorkers < 1) numWorkers = 1;
if (numWorkers > 16) numWorkers = 16;
if (numWorkers > 32) numWorkers = 32;
if (device->config().numCompilerThreads > 0)
numWorkers = device->config().numCompilerThreads;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment