mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Cap the global thread pool at 16 threads.
This commit is contained in:
parent
886a8b1ac6
commit
f3a9d040da
1 changed files with 3 additions and 1 deletions
|
@ -396,7 +396,9 @@ std::string CreateRandMAC() {
|
|||
}
|
||||
|
||||
static int DefaultNumWorkers() {
|
||||
return cpu_info.num_cores;
|
||||
// Let's cap the global thread pool at 16 threads. Nothing we do really should have much
|
||||
// use for more...
|
||||
return std::min(16, cpu_info.num_cores);
|
||||
}
|
||||
|
||||
static int DefaultCpuCore() {
|
||||
|
|
Loading…
Add table
Reference in a new issue