Author Topic: i update NUIG form 3.00 to 3.05 ,but drawCall increase to 30...it was 15 before  (Read 2843 times)

mmitang

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
i update NUIG form 3.00 to 3.05 ,but drawCall increase to 30...it was 15 before

in 3.00,i remember that the release notes said that the same depth wigdit in the same panel will cause one drawcall, so i optimize my NGUI widgets,make the widget's depth from 0 To 5.it became only 10 ~ 15 dc .

but after i update to 3.05,the dc increases to 30.

the render quene has changed??

what's the new  rule???

mmitang

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
i found that the FontSize was the reason

one font size one drawcall

i suggest that make the font size can be like the sprite,the dimensions can also controrl size ,not only by font size and localscale

mmitang

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Font size was not the reason

i finally fount that the problem ,

maybe it was a bug

the  labels under same panel,they have same depth ,but some of them are not render together with others

mmitang

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
confused .....


i disable all uilabels.....but the dc is still 20.....

i can't find what cause the problem

mmitang

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
an image

OnlineCop

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 51
    • View Profile
Check the render depth that those UIWidgets are set to. Take a look here: http://www.youtube.com/watch?feature=player_detailpage&v=OT0hTxjjkY4#t=1283 (specifically, starting at time 21:38 if this link doesn't start you there). It sounds like you will need to just bump the depths around a bit, and it will drop those draw calls for you.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Make sure your panels use unique depth values. If you don't, the depth values of widgets within those panels will conflict with each other.

mmitang

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
thanks alot
it work
go back to 10dc,less than before 30, and before than before 15
Great Work

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile