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.

Home Page:http://phaser.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Game loop runs slow when setTimeout() is used

samme opened this issue · comments

commented

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

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

  • A bug in the API:
    • Phaser version(s): 2.16.2 and earlier