How to cap HTML5 games at 60FPS

JettJamesJettJames Member, PRO Posts: 9

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

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,282

    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.

  • JettJamesJettJames Member, PRO Posts: 9

    Thanks so much.

Sign In or Register to comment.