Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Dumbdumb on October 20, 2013, 05:54:17 PM
-
Hi, this post is for ArenMook or anyone with an extensive knowledge of NGUI. I'm using NGUI to create a pretty complex UI that contains dozens of panels. What is really interesting is that the whole application would slow WAY down when enough panels were added to the program. Using Profiler I determined that the culprit was something called UpdateManager.Coroutine. So... I went to NGUI's UpdateManager.cs and commented out the following:
void Start ()
{
if (Application.isPlaying)
{
mTime = Time.realtimeSinceStartup;
-> //StartCoroutine(CoroutineFunction());
}
}
This alleviated the problem but I would like to know a.) what UpdateManager is used for and b.) if I have screwed anything up in the background by doing this.
-
My question is... why are you using the UpdateManager? It's an example script that has existed since before the Script Execution Order was added. The only places UpdateManager is used is in other example scripts -- LagPosition, LagRotation, and the two Window dragging scripts used in the draggable window example.
-
Well, true to my user name I once again look like a dumb dumb. I am utilizing a draggable panel I copied a long time ago and totally forgot about. When I looked in the profiler at what object was utilizing the script it said N/A which made me think it was being referenced in another script in a way I couldn't figure out. Thank you for the help!! You've built a incredible tool and are spot on once again in diagnosing the issue!