My recent use cases with particles mainly involved using looping (with animation controllers and the like), and so I decided to do this little modification to assist me with that... With it now released, I thought I would create a pull request so that it could be available for everyone who may need it this way.
It relies on the requestAnimationFrame for the loop, and runs at 20 frames per second.
Personal thoughts
The icon may be mistaken for a "record" button... I could not find any font awesome icon which had something in a circle which really could signify "looping" so I did that for the timebeing
20 tps may not be what everyone wants, maybe an input to set how often it loops?
I did not do a fully in depth look through the emitter code, if this implementation has some obvious performance deficiencies, I would be happy for any such pointers
If you would rather do your own implementation, it would be perfectly fine, I just thought I'd share what I have done previously :)
Hey Jannis,
My recent use cases with particles mainly involved using looping (with animation controllers and the like), and so I decided to do this little modification to assist me with that... With it now released, I thought I would create a pull request so that it could be available for everyone who may need it this way.
It relies on the
requestAnimationFrame
for the loop, and runs at 20 frames per second.Personal thoughts
The icon may be mistaken for a "record" button... I could not find any font awesome icon which had something in a circle which really could signify "looping" so I did that for the timebeing
20 tps may not be what everyone wants, maybe an input to set how often it loops?
I did not do a fully in depth look through the emitter code, if this implementation has some obvious performance deficiencies, I would be happy for any such pointers
If you would rather do your own implementation, it would be perfectly fine, I just thought I'd share what I have done previously :)