Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Unfortunately, JavaScript canvas games do not currently support vsync options. However, we have added an option to turn off number pop-ups in order to improve performance in v0.0.7. We hope this update will be helpful.

(+1)

https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame

Instead of forcing an update every frame, you can instead use requestAnimationFrame(), and then calculate the fps to get your delta time for updating the game. I see that the game is minified and obfuscated so I can’t see how you do things, so I’m afraid I can’t help much more with this.

I'm actually using requestAnimationFrame() and delta to calculate the frame difference, and I've used the same algorithms in other games. I'm sorry I can't be of more help, but if I come up with a solution, I'll be sure to share it.