Jump to content

Pause render in pixijs


Recommended Posts

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)

  // ...
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...