Jump to content

Update while browser tab switch


Heisoku
 Share

Recommended Posts

 I want to make a multiplayer game so it need to be constantly updated.

 

this.game.stage.disableVisibilityChange = true;

This works great if you leave the window but it doesn't work if you switch tab because of RAF.

I read about forceSetTimeOut, but I seem to be using it wrong so if that's the way to go, how do we use it or is there another way?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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