Author Topic: 3.0.7 f1 DrawCall multiplied when I have more than 1 UIRoot  (Read 2425 times)

Eric

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
3.0.7 f1 DrawCall multiplied when I have more than 1 UIRoot
« 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 ?

kitgui

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: 3.0.7 f1 DrawCall multiplied when I have more than 1 UIRoot
« Reply #1 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.

Eric

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: 3.0.7 f1 DrawCall multiplied when I have more than 1 UIRoot
« Reply #2 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 3.0.7 f1 DrawCall multiplied when I have more than 1 UIRoot
« Reply #3 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.

Eric

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: 3.0.7 f1 DrawCall multiplied when I have more than 1 UIRoot
« Reply #4 on: December 18, 2013, 10:48:23 PM »
Thank you!