2D Toolkit Forum

2D Toolkit => Support => Topic started by: Khorino on April 06, 2013, 09:53:56 pm

Title: Optimize particle system performance on mobile
Post by: Khorino on April 06, 2013, 09:53:56 pm
So, we're using the default particle system by Unity. The thing is they are too heavy and are causing the game to be unplayable because of slowdowns. Is there any optimization that can be made, with or without help of 2D Toolkit? Or use 2DTK for some tricks and get the same visual effects? By the way, we tested on iPhone 3GS and we plan to do it on Android as well.
Title: Re: Optimize particle system performance on mobile
Post by: fsadeq on April 07, 2013, 01:58:28 am
What particle effects are you trying to achieve? I'm using Shuriken with no performance issues at all.
Title: Re: Optimize particle system performance on mobile
Post by: Khorino on April 08, 2013, 01:34:37 am
We're using Shuriken too, for various different effects. We already optimized a little bit, but if possible, we want even more to use more things on a level.
Title: Re: Optimize particle system performance on mobile
Post by: unikronsoftware on April 08, 2013, 12:31:43 pm
@Khorino - that is a really open ended question, and there really isn't a generic answer to it. How you can simplify this really depends on a whole bunch of things, but one option is to "bake" the particles into a sprite animation. The multi atlas demo is an example of this. You can create that explosion using particles, but here, it is baked into one animation sequence.

With a bit of creativity - baking + real particles, you can greatly increase the number of particles you can push around.
Title: Re: Optimize particle system performance on mobile
Post by: Khorino on April 09, 2013, 01:39:35 am
Thank you for this answer!