Hello Guest

Author Topic: Optimize particle system performance on mobile  (Read 8827 times)

Khorino

  • Newbie
  • *
  • Posts: 14
    • View Profile
Optimize particle system performance on mobile
« 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.

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: Optimize particle system performance on mobile
« Reply #1 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.

Khorino

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Optimize particle system performance on mobile
« Reply #2 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Optimize particle system performance on mobile
« Reply #3 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.

Khorino

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Optimize particle system performance on mobile
« Reply #4 on: April 09, 2013, 01:39:35 am »
Thank you for this answer!