Jump to content

Redraw only when needed


Recommended Posts

Is there a way to have Pixi only redraw as needed?

For example, in the RenderTexture sample, the GPU is at 20% but nothing is moving.

Can I tell items not to redraw if they are idle?  Or how can I implement a "needsUpdate" flag?

In my app, the screen does not change frequently, and it sits idle on a big screen for long periods of time.
Over time the machine heats up and the fan kicks in with the GPU so high, in my case over 50%.

I have looked at the requestAnimationFrame loop, and I need this because I do want to animate sometimes ... just wondering where can I hook in to Pixi to improve this.





Link to comment
Share on other sites

  • 1 year later...

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...