turnA 21 Posted August 26, 2016 Report Share Posted August 26, 2016 Hi there, Just a little background info. I try to submit my HTML5 games for TIzen smartwatch. After some review process, my games got rejected because they detected that my games still using 12~24mA electricity when screen off/sleeping. Any application/games shouldn't be above 4~7mA when the device is sleeping, so they assume there is problem with my games when sleep/wake up. I'm not using any special code from phaser regarding visibility change, I left all of them at default. Is there any way to make sure that Phaser doesn't process ANYTHING at all when the screen is hidden (because screen off/sleeping)? I need to change the source code maybe? Thanks Quote Link to post Share on other sites
turnA 21 Posted August 27, 2016 Author Report Share Posted August 27, 2016 Bump. From reading source code, I realize the main controller of game loop is the game.raf . I assume that by stopping game.raf, I will totally stop any Phaser internal game process, is that right? Can I safely call game.raf.stop() and game.raf.start() when I detect screen change? Quote Link to post Share on other sites
Recommended Posts
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.