How to cap HTML5 games at 60FPS
Hello! I understand that GameSalad games are intended to run at a maximum of 60FPS, but when publishing to HTML5, that isn't a guarantee. I have an 120hz monitor, which causes my game to run at 120FPS on browser. Is there a way to modify my HTML5 game so it caps out at 60FPS, regardless of the monitor being used? Thanks.
Comments
We'll look into it. What's happening is we're using the browser's requestAnimationFrame, so we are at it's mercy at the moment. We'll need to put in specific timing code to cap framerate.
Thanks so much.