even slower
This commit is contained in:
parent
35842215b8
commit
a33b807c9e
|
@ -41,8 +41,8 @@ class Void extends WebSocketEvents {
|
||||||
this.maxClr = canvases[CANVAS_ID].colors.length;
|
this.maxClr = canvases[CANVAS_ID].colors.length;
|
||||||
const area = TARGET_RADIUS ** 2 * Math.PI;
|
const area = TARGET_RADIUS ** 2 * Math.PI;
|
||||||
const online = webSockets.onlineCounter;
|
const online = webSockets.onlineCounter;
|
||||||
// require an average of 0.5 px / min / user
|
// require an average of 0.25 px / min / user
|
||||||
const requiredSpeed = Math.floor(online / 2);
|
const requiredSpeed = Math.floor(online / 4);
|
||||||
const ppm = Math.ceil(area / EVENT_DURATION_MIN + requiredSpeed);
|
const ppm = Math.ceil(area / EVENT_DURATION_MIN + requiredSpeed);
|
||||||
// timeout between pixels
|
// timeout between pixels
|
||||||
this.msTimeout = 60 * 1000 / ppm;
|
this.msTimeout = 60 * 1000 / ppm;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user