scheduler error correction failed attempt

This commit is contained in:
Felix Roos 2022-08-22 22:15:32 +02:00
parent e37e0f189a
commit 275931969e
3 changed files with 26 additions and 12 deletions

View file

@ -12,7 +12,7 @@ const createWorker = (func) => new Worker(urlifyFunction(func));
// this is just a setInterval with a counter, running in a worker
export class ClockWorker {
worker;
interval = 1 / 32; // query span, use powers of 2 to get better float accuracy
interval = 1 / 10; // query span, use powers of 2 to get better float accuracy
tick = 0;
constructor(callback, interval = this.interval) {
this.interval = interval;