reduce thread pool threads for the world
This commit is contained in:
parent
0b7ea5aa9a
commit
6479aad437
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"port": 25565,
|
||||
"threadPoolCount": 8
|
||||
"worldThreads": 4
|
||||
}
|
|
@ -17,7 +17,7 @@ module.exports = class {
|
|||
this.toRemove = [];
|
||||
|
||||
// WoAh!!! Thread pool in js!?!??!???!11!?!?!
|
||||
for (let i = 0; i < config.threadPoolCount; i++) {
|
||||
for (let i = 0; i < config.worldThreads; i++) {
|
||||
const worker = new Worker(workerPath);
|
||||
this.threadPool.push([false, worker]);
|
||||
const myID = i;
|
||||
|
|
Loading…
Reference in New Issue