Author Topic: Best Performance  (Read 2537 times)

joreldraw

  • Guest
Best Performance
« on: May 29, 2012, 01:27:47 AM »
Hi guys.
I have an app with a lot of diferent GUI windows and too with a 3d scene.
I like to know what is the better way to optimize memory and performance my app.

Now i have few prefab with some windows that have same structure & i enable disable when i need.

I like to know if is better do more individuals prefab or make with script in execution time and destroy instead of disabled.

Thanks in advance

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Best Performance
« Reply #1 on: May 29, 2012, 02:25:11 AM »
Computationally I don't think there's a difference. I do think it's faster to work with prefabs for you, and that's what Unity recommends.

PhilipC

  • Guest
Re: Best Performance
« Reply #2 on: May 29, 2012, 09:21:07 AM »
From what I know Unity is faster to hide/ show gameobjects then it is to create/ destroy gameobjects. So I would personally stick with you current method of having a few prefabs that you hide and show when needed.