Jump to content

HEADLESS mode (MultiPlayer game)


Recommended Posts

Hi I am building a WebRTC multiplayer game. I want to use the HEADLESS mode but it doesn't seem to work? i set rendering  to HEADLESS but it still renders. How do you actually use it?

Also, is there a solution to not stop the update loop when tab change or window is minimized?

If your curious to what I'm doing, here is my progress so far: 


Link to comment
Share on other sites

  • 1 month later...

I've always been curious about headless mode. I use quite a lot of client side information but still have a fully functional multiplayer game. Its turn based though which makes it much easier.

To fix the issue with the game pausing when tabs change etc... the only option I know of is http://phaser.io/docs/2.4.7/Phaser.Stage.html#disableVisibilityChange but it still can pause, for me it happens if I minimize the browser.

Link to comment
Share on other sites

The update loop pausing when you switch tabs/minimize, etc is a result of Chrome (and other browser) memory management. I'm afraid there's not a workaround that I know of. DisableVisibilityChange does work partially - i.e. if you minimize, it will still resume or if you click another tab or vice versa (forgot which). But I'm pretty sure disableVisibilityChange is not a guarantee for what you want to accomplish (always have the game run regardless of the window state). 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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