SPU LLVM: Avoid excess cache threads

This commit is contained in:
Eladash 2023-09-09 22:07:59 +03:00 committed by Elad Ashkenazi
parent bdceb24fd9
commit 62b880cb78

View file

@ -781,7 +781,7 @@ void spu_cache::initialize(bool build_existing_cache)
progr.emplace("Building SPU cache..."); progr.emplace("Building SPU cache...");
} }
worker_count = rpcs3::utils::get_max_threads(); worker_count = std::min<u32>(rpcs3::utils::get_max_threads(), add_count);
} }
named_thread_group workers("SPU Worker ", worker_count, [&]() -> uint named_thread_group workers("SPU Worker ", worker_count, [&]() -> uint