darkj3ean Posted March 24, 2016 Share Posted March 24, 2016 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: spinnerbox 1 Link to comment Share on other sites More sharing options...
ForgeableSum Posted May 3, 2016 Share Posted May 3, 2016 I've run into the same issue in the latest version of Phaser. Wondering if headless mode is still working. I'll open an issue on git hub. Link to comment Share on other sites More sharing options...
rgk Posted May 3, 2016 Share Posted May 3, 2016 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 More sharing options...
ForgeableSum Posted May 3, 2016 Share Posted May 3, 2016 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 More sharing options...
Recommended Posts