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]);