mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Use only one extra thread for async pipeline compilation
With the benefits of asynchronous compilation being generally low and compilation in advance not being feasible, there is no reason to create more threads.
This commit is contained in:
parent
425a5bca2e
commit
7f619d9051
@ -4,9 +4,7 @@
|
|||||||
namespace dxvk {
|
namespace dxvk {
|
||||||
|
|
||||||
DxvkPipelineCompiler::DxvkPipelineCompiler() {
|
DxvkPipelineCompiler::DxvkPipelineCompiler() {
|
||||||
// Use ~half the CPU cores for pipeline compilation
|
constexpr uint32_t threadCount = 1u;
|
||||||
const uint32_t threadCount = std::max<uint32_t>(
|
|
||||||
1u, std::thread::hardware_concurrency() / 2);
|
|
||||||
|
|
||||||
Logger::debug(str::format(
|
Logger::debug(str::format(
|
||||||
"DxvkPipelineCompiler: Using ", threadCount, " workers"));
|
"DxvkPipelineCompiler: Using ", threadCount, " workers"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user