Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- msAhead += updateFrequency; //when new update is received.
- (function loop(now) {
- var now = Date.now();
- delta = now - Time;
- Time = now;
- msAhead -= delta;
- console.log(msAhead);
- requestAnimationFrame(loop)
- })(0);
Add Comment
Please, Sign In to add comment