playMaker

Author Topic: Need opinion/advice on creating object.  (Read 1707 times)

detomato

  • Playmaker Newbie
  • *
  • Posts: 36
Need opinion/advice on creating object.
« on: March 30, 2015, 08:12:18 AM »
Basically I have literally about 120 character for players choose from. I know its overkilled, hence I need advices here.

Is it better to use activate and deactivate object or create and destroy (by tag) method? I'm asking on performance wise. The character has multiple animation when on showcase.

Each character had about 6.5k polys, and 3 animation that will play randomly.
Its for mobile.

So far I have tried with activate/deactivate method, it seem OK but it became sluggish after showing a few character.

Thanks in advance.

KellyRay

  • Full Member
  • ***
  • Posts: 170
Re: Need opinion/advice on creating object.
« Reply #1 on: March 30, 2015, 08:51:06 AM »
6.5 poly is a bit over kill for mobile from my understanding. Especially if it moves.

Activate and Deactivate will have better performance than create/destroy. You should check into object pooling. There are a number of free ones on the Asset Store.

Look at your Unity Profiler and see what's causing the sluggish performance.

detomato

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Need opinion/advice on creating object.
« Reply #2 on: March 30, 2015, 09:05:59 AM »
How do object pooling helps in this case? I always thought object pooling was only meant for instantiating and destroying objects? Perhaps I was having the wrong idea all this time.