Jump to content

game.time.events.add() is taking longer when minimized


horkoda
 Share

Recommended Posts

Test case: http://codepen.io/anon/pen/EagxjX

Using latest Chrome (39.0.2171.95 m)

 

When game.time.events.add(seconds, fn) is called and the user minimizes the browser window, Phaser's core seemingly pauses. Even though I have set game.stage.disableVisibilityChange = true;

When user maximizes the window again the fn will be called, but way, way too late.

 

Is this normal behaviour? If so, how can I make it work even when user minimizes the window?

I will probably move to setTimeout(). I know it's not accurate, but I need my app to be running when in background.

Link to comment
Share on other sites

  • 2 weeks later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...