Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: terrynoya on May 28, 2014, 08:21:18 AM

Title: Performance issue about changing UIAtlas at runtime
Post by: terrynoya on May 28, 2014, 08:21:18 AM
HI All,
 I'm making an 2d action game, Characters have many actions that can't pack in one sheet,so I seperate actions (walk,move,attack,jump) like this.Then when I add 50 or more characters on my stage, and let them change uiatlas at the same time,let them attack(for 50 sprites, each call sprite.atlas = moveAtlas),then fps drop down drastically.
 Is there any idea or better way to solve this problem?
 Sorry for my English and Thank you.
Title: Re: Performance issue about changing UIAtlas at runtime
Post by: hrlarsen on May 28, 2014, 09:52:16 AM
just my five, but wouldn't it be idealy to use the Unity 2D system to create a game?
Title: Re: Performance issue about changing UIAtlas at runtime
Post by: terrynoya on May 29, 2014, 03:10:35 AM
just my five, but wouldn't it be idealy to use the Unity 2D system to create a game?
Very Sorry,My Fault, At last I found the cause was I Debug.log at that frame.
Change uiatlas will not effect fps and work perfectly
Thank you!