tommitytom Posted July 22, 2017 Share Posted July 22, 2017 Hi folks! So I'm working on an online game, and I'd like the game to continue running when the user changes tabs in their browser. I can get around the issue by adding forceSetTimeout: true to my config but it makes gameplay quite janky. Ideally I would use RAF, detect when a tab has changed, and switch to using the setTimeout method... and move back to using RAF once the user opens the tab up again. Is there anything in place for handling this? I know it's theoretically possible since I've worked with RAF and raw canvas in the past, I was just curious about the best method to approach this with Phaser. And before someone suggests it, I'm already setting disableVisibilityChange = true in my config to account for the game losing focus However this is not about losing focus, but changing tabs. Link to comment Share on other sites More sharing options...
Recommended Posts