megmut Posted February 19, 2017 Share Posted February 19, 2017 Hey guys, just a really quick question on containers. I see that you can use a PIXI.particles.ParticleContainer. In the documentation is says that it doesn't support features such as tinting, alpha, masking etc.. However, as this class is extending from the normal Container, I am curious as to what is different, and how it achieves this. Thanks, Nick Quote Link to comment Share on other sites More sharing options...
themoonrat Posted February 19, 2017 Share Posted February 19, 2017 It inherits from Container, but overrides a few critical methods related to updating the transforms and for rendering, in both cases optimising them for particle usage. The quickest way sometimes to look at the code rather then going though github is to go via the docs: http://pixijs.download/dev/docs/particles_ParticleContainer.js.html Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 19, 2017 Share Posted February 19, 2017 If you are writing for PC and you have less than 10k sprites, its better to use plain Container. For some critical cases, there are plugins: https://github.com/pixijs/pixi-tilemap , and ParticleContainer. Quote Link to comment Share on other sites More sharing options...
megmut Posted February 22, 2017 Author Share Posted February 22, 2017 Ah okay, thanks! I've been playing around with a simple particle emitter because, why not.. and I've got it to roughly 30k with multiple textures still at 60fps. I crated some simple pooling and lightweight gravity and velocity "physics". Thanks for the response ClusterAtlas 1 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.