Author Topic: UIPanel animation/tweening is jittery  (Read 2776 times)

bkevelham

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 11
    • View Profile
    • Personal Website
UIPanel animation/tweening is jittery
« on: August 22, 2013, 09:24:07 AM »
I have a UIPanel with an alpha clip. Below it I have a UIGrid with UIImageButtons. Two other buttons are there to select the next item within the grid, to be shown in the center of the clipped area. (All sprites come from the same atlas) So far so good. The animation works and all seems peachy.

However, when animating the panel (by modifying its transform and updating the clippingRange), the animation seems somewhat jittery from time to time. Not back and forth, but as if the update between frames is not as it should be. The profiler doesn't provide any information on what might be the cause. There are no clear performance hogs that influence the smoothness of the framerate or such.

For the animation itself I've used several approaches. I used a TweenPosition, I've written my own basic tweening, and I even tried animating the grid instead (bad, I know, but hey).

Would anyone have any idea where I should look for possible bottlenecks? Has anyone experienced similar issues?
« Last Edit: August 22, 2013, 09:36:19 AM by bkevelham »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel animation/tweening is jittery
« Reply #1 on: August 22, 2013, 09:58:48 AM »
Do you use any anchors underneath your panel? That would be the only reason on NGUI's side I can think of.

bkevelham

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 11
    • View Profile
    • Personal Website
Re: UIPanel animation/tweening is jittery
« Reply #2 on: August 22, 2013, 10:03:46 AM »
Nope. Not at all. I'll see if I can hunt down some more information and create an example which I can share which reproduces the effect I'm seeing.