jollibee Posted April 2, 2018 Share Posted April 2, 2018 The webivew which use pixijs will crash on iOS when the app goes background, something like: _gpus_ReturnNotPermittedKillClient. So, we have to pause the webgl render. There is lockRender in Phaser. Is there a similar method in Pixijs to pause renderer? Thank you. updateRender: function (elapsedTime) { if (this.lockRender) { return; } // ... } Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 2, 2018 Share Posted April 2, 2018 PixiJS Application class is a mashup: https://github.com/pixijs/pixi.js/blob/dev/src/core/Application.js If you are making a game and not just hello-world project, you are supposed to copy this thing and modify however you want: add paus,e, add second renderer, e.t.c. In the future versions, the class will have InteractionManager inside. Quote Link to comment Share on other sites More sharing options...
Gerente Posted April 2, 2018 Share Posted April 2, 2018 If you use the shared ticker then just stop it and it should top all the update, and then start() to resume PIXI.shared.ticker.stop() PIXI.shared.ticker.start() Quote Link to comment Share on other sites More sharing options...
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.