Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: PoN on February 27, 2014, 05:35:09 AM
-
Why is too much GC alloc for UIRect ? How can i reduce?
-
The UIEventTrigger will likely be something you load when you click a button. Try to fold it out to see where the GC actually happens.
The UIRect one sounds weird - seems like there's a bunch of string stuff left over, but that doesn't account for 3+MB.
-
A Deep Profile view would help you determine where the allocation really happens.
-
so now pic with deep profile, have any idea?
-
Why are you instantiating so much stuff at once? ???
-
You're instantiating a lot of stuff, so of course it will result in GC allocation and a performance hit.
-
Why are you instantiating so much stuff at once? ???
i use NGUITools.AddChild, so have any idea for improve perf. ? thanks
-
Consider putting them in bigger prefabs, so you don't have to instantiate as many things. Instantiation has a considerable overhead,