mirror of https://github.com/bjornbytes/lovr.git
Details;
This commit is contained in:
parent
1701409763
commit
b32ac1c5a5
|
@ -45,7 +45,7 @@ bool lovrThreadModuleInit(int32_t workers) {
|
|||
map_init(&state.channels, 0);
|
||||
|
||||
uint32_t cores = os_get_core_count();
|
||||
if (workers < 0) workers = cores + workers;
|
||||
if (workers < 0) workers += cores;
|
||||
workers = MAX(workers, 0);
|
||||
job_init(workers);
|
||||
|
||||
|
|
Loading…
Reference in New Issue