Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: artician on November 06, 2012, 12:38:10 PM

Title: Off-screen performance?
Post by: artician on November 06, 2012, 12:38:10 PM
Newb question, but up until now I've been creating widgets and Activating/Deactivating them as needed.  I have several now that I am sliding onto the screen from outside the camera boundaries, and I was curious if there would be any performance hit if I just left them Active at all times.

So: Is there a difference in performance between a sprite that is offscreen and a sprite that is Deactivated?

Thanks!
Title: Re: Off-screen performance?
Post by: Arowx on November 06, 2012, 02:58:01 PM
In theory yes as they do not need to be checked to see if the camera can see them, but it depends upon how Unity internally handles active off screen and inactive objects and their meshes/textures/memory usage.

Also any attached scripts are not being processed on Inactive Objects.