reduce thread pool threads for the world

This commit is contained in:
Holly Stubbs 2021-08-21 08:22:09 +01:00
parent 0b7ea5aa9a
commit 6479aad437
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{
"port": 25565,
"threadPoolCount": 8
"worldThreads": 4
}

View file

@ -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;