Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3980

Redraw only when needed

$
0
0

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.
http://pixijs.github.io/examples/index.html?s=basics&f=render-texture.js 

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.

Thanks
--Andy

 

 

 


Viewing all articles
Browse latest Browse all 3980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>