phaserjs / phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
http://phaser.io
MIT License
1.34k stars 491 forks source link

Game loop runs slow when setTimeout() is used #687

Closed samme closed 3 years ago

samme commented 3 years ago

When using setTimeout(), the game loop runs slower than intended. timeToCall is incorrect.

fps: 51; desiredFps: 60; timeToCall: 18; elapsed: 20

samme commented 3 years ago

Fixed in https://github.com/photonstorm/phaser-ce/releases/tag/v2.17.0