Hacker News new | ask | show | jobs
by telcy 2847 days ago
What you mean is setInterval and does work well for synchronous execution. His approach is correct and would even work if the animate function is asynchronous as the next tick gets scheduled at the end of animate function execution.
1 comments

Ah yes, you are right. Got those mixed up.
Recursive setTimeout is a great way to allow for easy timing/speed changes on the fly.
good point :)