pixijs / particle-emitter

A particle system for PixiJS
http://pixijs.io/particle-emitter/docs
MIT License
784 stars 124 forks source link

[inquiry] does Pixi particles use instanced rendering? #197

Closed LukeWood closed 1 year ago

LukeWood commented 1 year ago

Hello! I love Pixi particles. I make heavy use of it to produce beautiful graphics for a game I write.

Does Pixi particles use instanced rendering? If not, do you anticipate it to be possible to implement? I’m interested in taking a stab if you have a direction for me to try

andrewstart commented 1 year ago

It does not use instanced rendering. I am pretty sure that instanced rendering is possible in PixiJS, as I believe @ivanpopelyshev has done so in one of his own projects but I have no idea how it was done. I assume that in the current version of Pixi you would need to create your own ObjectRenderer subclass.

LukeWood commented 1 year ago

This guy exists: https://api.pixijs.io/@pixi-essentials/instanced-renderer/InstancedRenderer.html

But I'm not sure how to use it. I'll do a little search for resources and maybe we can get it working with the particle system :)

@ivanpopelyshev if you have any guidance let me know!

LukeWood commented 1 year ago

Under the hood pixi does all of this for us :)