3 ms·
Yet another autopilot (in javascript): https://gist.github.com/xaedes/de252d992dab0ca9c38867197f38f41a https://gist.github.com/xaedes/de252d992dab0ca9c38867197
by xaedes 5y ago
Yet another autopilot (in javascript):
https://gist.github.com/xaedes/de252d992dab0ca9c38867197f38f41a https://gist.github.com/xaedes/de252d992dab0ca9c38867197f38f...
- joshribakoff 5y agoYou 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!)