News for hackers. Stuff that matters.
Re:Breaking down a ripple animation in JavaScript by fenomas on Saturday August 21, 2021 @04:46AM (#28255328)
(a) I didn't downvote you.

(b) setInterval and setTimeout fire off the same event loop; they can only occur at the same fixed times. Why do you think one is more reliable? Just repeating that it's the case doesn't convey any information.

(c) I've written various schedulers; the most recent one is `micro-game-shell` on github if you're interested.

Re:Breaking down a ripple animation in JavaScript by beebeepka on Saturday August 21, 2021 @10:23AM (#28257239)
b) I've observed different time deltas between the two on embedded and standard PC hardware. That's why I think there's a difference. Also, their behaviour has changed over the last few years, making them extremely unreliable as the user changes tabs