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