Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just a note for those planning to make a simple game or animation in JavaScript: in most cases it's preferrable to use `requestAnimationFrame` instead of `setInterval` or `setTimeout`.

https://stackoverflow.com/a/38709924



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: