Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Eric on December 17, 2013, 09:02:12 PM

Title: 3.0.7 f1 DrawCall multiplied when I have more than 1 UIRoot
Post by: Eric on December 17, 2013, 09:02:12 PM
Hi, I'm using NGUI 3.0.7 f1, I have 5 UIRoot in one scene(I'm using Application.LoadLevelAdditive()), and each has a panel. By using Draw Call Tool, I can see every panel has 20 DrawCalls, but when I opened Stats in Game, I found 100 Drawcalls. Am I doing something wrong? I'm try to use less UIRoot, any other way ?
Title: Re: 3.0.7 f1 DrawCall multiplied when I have more than 1 UIRoot
Post by: kitgui on December 17, 2013, 09:19:41 PM
How does LoadLevelAdditive work? When I looked at it, I found there isn't any documentation to tell you how it behaves beyond "Loads levels without unloading the current level" and no settings you can use to affect how it behaves.
Title: Re: 3.0.7 f1 DrawCall multiplied when I have more than 1 UIRoot
Post by: Eric on December 17, 2013, 10:10:48 PM
Suppose you have 2 scenes, named A and B, by using Application.LoadLevelAdditive("B"), you can add all gameobjects in B to A, and do whatever you want to the gameobjects just like they are A's gameobjects. To be honestly, I dont quite get what you what
Title: Re: 3.0.7 f1 DrawCall multiplied when I have more than 1 UIRoot
Post by: ArenMook on December 18, 2013, 09:45:46 AM
This has been already addressed in the last Pro version. It's an issue with visualization only (in the tool), and doesn't actually create extra draw calls as you can tell by looking at the Stats window.
Title: Re: 3.0.7 f1 DrawCall multiplied when I have more than 1 UIRoot
Post by: Eric on December 18, 2013, 10:48:23 PM
Thank you!