even slower

This commit is contained in:
HF 2020-05-25 02:51:38 +02:00
parent 35842215b8
commit a33b807c9e

View File

@ -41,8 +41,8 @@ class Void extends WebSocketEvents {
this.maxClr = canvases[CANVAS_ID].colors.length;
const area = TARGET_RADIUS ** 2 * Math.PI;
const online = webSockets.onlineCounter;
// require an average of 0.5 px / min / user
const requiredSpeed = Math.floor(online / 2);
// require an average of 0.25 px / min / user
const requiredSpeed = Math.floor(online / 4);
const ppm = Math.ceil(area / EVENT_DURATION_MIN + requiredSpeed);
// timeout between pixels
this.msTimeout = 60 * 1000 / ppm;