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

Struggling with GC in big project

$
0
0

We are working in a pretty big project. around 10 different games all playable in the same pixi container (not at the same time though). I have a few questions regarding garbage collection:

When trying to minimise the footprint of each game is it right to keep an eye on PIXI.utis.TextureCache and BaseTextureCache? Will this give me a full list of textures in memory?

I have noticed that just using the loader to load assets automatically adds the Textures to the TextureCache - does that sound right?

I can also see that calling destroy(true) on an AnimatedSprite only seems to remove one of the textures from its TextureArray - does that seem correct?

Looking forward to learning more...


Viewing all articles
Browse latest Browse all 3980

Trending Articles



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