Re:Show HN: Looptap – A minimal game to waste your time
by elwell on Thursday January 13, 2022 @04:03PM
(#29926821)
No requestAnimationFrame?
[ Parent
| on HN ]
Re:Show HN: Looptap – A minimal game to waste your time
by capableweb on Thursday January 13, 2022 @06:02PM
(#29928252)
Basically the same in this case, as the setInterval is set with 10ms between firings, and requestAnimationFrame would (most likely, depending on computer/display) fire every ~16ms. It would be more efficient though, that's for sure, but most likely basically the same :)