From 405c74ad7abdf75dbd5d1f0608d5a79172c8a136 Mon Sep 17 00:00:00 2001 From: HF Date: Sat, 30 May 2020 18:55:06 +0200 Subject: [PATCH] void rebalancing --- src/core/Void.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Void.js b/src/core/Void.js index 1e0176b..8b9e230 100644 --- a/src/core/Void.js +++ b/src/core/Void.js @@ -43,7 +43,7 @@ class Void extends WebSocketEvents { const area = TARGET_RADIUS ** 2 * Math.PI; const online = webSockets.onlineCounter; // require an average of 0.25 px / min / user - const requiredSpeed = Math.floor(online / 1.5); + const requiredSpeed = Math.floor(online / 1.8); const ppm = Math.ceil(area / EVENT_DURATION_MIN + requiredSpeed); // timeout between pixels this.msTimeout = 60 * 1000 / ppm; @@ -152,7 +152,7 @@ class Void extends WebSocketEvents { this.sendPixel(x, y, clr); if (this.isUserSet(x, y)) { // if drawing on a user set pixel, wait longer - setTimeout(this.voidLoop, this.msTimeout * 3.5); + setTimeout(this.voidLoop, this.msTimeout * 4); return; } break;