From cfde8a7b879ba332d285d6ca90d7d167aaed9bef Mon Sep 17 00:00:00 2001 From: holly Date: Thu, 12 Aug 2021 08:55:05 +0100 Subject: [PATCH] asdf --- server/chunkManager.js | 2 +- server/server.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/chunkManager.js b/server/chunkManager.js index 5a4831a..db6c192 100644 --- a/server/chunkManager.js +++ b/server/chunkManager.js @@ -18,7 +18,7 @@ module.exports = class { this.toRemove = []; - for (let i = 0; i < 6; i++) { + for (let i = 0; i < 4; i++) { const worker = new Worker(workerPath); this.threadPool.push([false, worker]); const myID = i; diff --git a/server/server.js b/server/server.js index e3dffe6..b59ae24 100644 --- a/server/server.js +++ b/server/server.js @@ -78,7 +78,7 @@ module.exports.init = function(config) { const user = netUsers[netUserKeys]; let itemsToRemove = []; - for (let i = 0; i < Math.min(user.chunksToSend.getLength(), 32); i++) { + for (let i = 0; i < Math.min(user.chunksToSend.getLength(), 128); i++) { const chunkKey = user.chunksToSend.itemKeys[i]; itemsToRemove.push(chunkKey); user.socket.write(user.chunksToSend.items[chunkKey]);