circlegame / circlegame-neo

A minimalistic, reflex-precision benchmark.
https://circlegame.net
GNU General Public License v3.0
1 stars 0 forks source link

Use setInterval() to do in-game updates #120

Open josef-karpinski opened 3 months ago

josef-karpinski commented 3 months ago

Need to investigate whether or not it is much more efficient to do a setInterval for updating things we do every frame during the sketch. For example, the circle position and maybe when new circles spawn. This could potentially solve the issue of people having slow computers and the game displaying slower, so instead now they would have lower frames but the circles would move at the same speed so it doesn't matter?

If this works it would make allowing different framerates much easier.

(I found this out when a girl from work got 3rd on the leaderboard from playing on her phone 😭 )