macabeus / react-gbajs

🕹 GBA emulator on your React project - easy and powerful to use!
https://www.npmjs.com/package/react-gbajs
BSD 2-Clause "Simplified" License
71 stars 14 forks source link

fps: replace requestAnimationFrame to setTimetout #3

Closed macabeus closed 3 years ago

macabeus commented 3 years ago

requestAnimationFrame doesn't work well for emulators since it could be faster than 60 FPS on some computers. Then this PR replaces it to setTimeout such as gbajs originally was using.

https://github.com/city41/smaghetti/issues/25#issuecomment-847305380