3 ms·
You should use requestAnimationFrame and inspect the timestamps passed to the callbacks to check how much time has elapsed (a setInterval of 1 second may not ru
by joshribakoff 5y ago
You should use requestAnimationFrame and inspect the timestamps passed to the callbacks to check how much time has elapsed (a setInterval of 1 second may not run every 1 second, so I would not feel safe!)