Best alternative to requestAnimationFrame for a game running on kaluma? #640
EthanOscarson
started this conversation in
General
Replies: 1 comment
-
I've gotten good performance with just using just hardcode the FPS you're going for with either setInterval or setTimeout style loopin', but keep in mind that if you do a bunch of processing, it might not always be exactly 30FPS, since it's all running on one thread AFAIK! Hope that helps, but also I'm not super experienced in all this but just my two cents |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm planning on making a game with kaluma js and a ssd7789 driver. Usually, on an html5 canvas, you'd use requestAnimationFrame to render the game consistently and smoothly. Is using something like setInterval at 60 times a second with a callback to render a buffered graphic context a good idea? Is 60 fps a little much for the pico?
I'd be glad for any advice relating to game dev with kaluma or embedded systems!
Beta Was this translation helpful? Give feedback.
All reactions