1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-12 13:08:50 +01:00

[dxvk] Set thread priority for background workers

We accidentally lost this somehow.
This commit is contained in:
Philip Rebohle 2023-01-15 15:54:03 +01:00
parent 459758c6ff
commit af05265cb6

View File

@ -112,9 +112,11 @@ namespace dxvk {
priority = DxvkPipelinePriority::Low;
}
m_workers.emplace_back([this, priority] {
auto& worker = m_workers.emplace_back([this, priority] {
runWorker(priority);
});
worker.set_priority(ThreadPriority::Lowest);
}
Logger::info(str::format("DXVK: Using ", workerCount, " compiler threads"));