Author Topic: Question about UITexture  (Read 1600 times)

a7113606

  • Guest
Question about UITexture
« on: November 15, 2013, 04:59:10 AM »
I has a question when i use UITexture:
My game will use 15  UITextures in a Scene, change The mainTexture And Scale Or Position often,the Textrue2D i used is already in RAM When i StartGame.
this work in 2.1.6V is smooth,but when i changed to 3.0.4V,i found it not smooth... :'(
i see the profiler CPU Usage,the value will rise high when i change The mainTexture
i want to know how to solve this problem..i like the new UIFONT..

I am sorry about my english.I hope you can know what i say.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Question about UITexture
« Reply #1 on: November 15, 2013, 06:14:24 AM »
I suggest having a material on your UITexture, and changing the texture on that material instead. This will not cause NGUI to re-think the draw queues. I'll be doing an optimization pass on the whole logic in the near future that should also help.