add note to future
This commit is contained in:
parent
2fcbffeaf9
commit
8dba865ca7
2 changed files with 4 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ function createClock(
|
|||
// callback as long as we're inside the lookahead
|
||||
while (phase < lookahead) {
|
||||
phase = Math.round(phase * precision) / precision;
|
||||
phase >= t && callback(phase, duration, tick);
|
||||
phase >= t && callback(phase, duration, tick, t);
|
||||
phase < t && console.log('TOO LATE', phase); // what if latency is added from outside?
|
||||
phase += duration; // increment phase by duration
|
||||
tick++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue