taskmanager: spawn 2x the core count of threads by default
Because our multithreading code is generally terrible, this seems to actually measurably improve throughput.
This commit is contained in:
parent
18b221d473
commit
d21e81e7b6
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ TaskManager *taskmgr_create(uint numthreads, ThreadPriority prio, const char *na
|
|||
uint maxthreads = numcores * 4;
|
||||
|
||||
if(numthreads == 0) {
|
||||
numthreads = numcores;
|
||||
numthreads = numcores * 2;
|
||||
} else if(numthreads > maxthreads) {
|
||||
log_warn("Number of threads capped to %i (%i requested)", maxthreads, numthreads);
|
||||
numthreads = maxthreads;
|
||||
|
|
Loading…
Reference in a new issue