Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PIXI.ParticleContainer instead of PIXI.Container? #24

Open
belohlavek opened this issue Dec 1, 2018 · 1 comment
Open

Use PIXI.ParticleContainer instead of PIXI.Container? #24

belohlavek opened this issue Dec 1, 2018 · 1 comment
Labels
Engine Performance question Further information is requested

Comments

@belohlavek
Copy link
Contributor

The ParticleContainer class is a really fast version of the Container built solely for speed, so use when you need a lot of sprites or particles.

http://pixijs.download/release/docs/PIXI.particles.ParticleContainer.html

@belohlavek belohlavek added Engine Performance question Further information is requested labels Dec 1, 2018
@belohlavek belohlavek changed the title Use PIXI.ParticleContainer instead of PIXI.Container Use PIXI.ParticleContainer instead of PIXI.Container? Dec 1, 2018
@nicosantangelo
Copy link
Collaborator

We might want to consider using it as a default, because we're not using many of the advanced features we'd lose anyways:

The tradeoff of the ParticleContainer is that most advanced functionality will not work. ParticleContainer implements the basic object transform (position, scale, rotation) and some advanced functionality like tint (as of v4.5.6). Other more advanced functionality like masking, children, filters, etc will not work on sprites in this batch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engine Performance question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants