I’m developing a rather large game (100k LoC) in Phaser and it’s an Action RPG MMO. I am loving Electron!
There is one problem though and was wondering if you guys know how I can solve it.
When you minimize the browser window it seems like the browser windows halts all execution.
I was wondering if there is a setting for electron that disables this and keeps the code running while the electron window is not-active. For Phaser, the game engine I am using, there is this: http://phaser.io/docs/2.4.6/Phaser.Stage.html#disableVisibilityChange
And I do have it set to true, but it also says
Note that the browser can still elect to pause your game if it wishes to do so, for example swapping to another browser tab. This will cause the RAF callback to halt, effectively pausing your game, even though no in-game pause event is triggered if you enable this property.
So, is this maybe a Chromium issue with RequestAnimationFrame? Or a setting that maybe electron can fix?