Author Topic: Android-only problem: delays while animating masks  (Read 4889 times)

fila

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Android-only problem: delays while animating masks
« on: March 06, 2014, 06:20:12 AM »
We use a paid version of NGUI in an Android / iOS / Windows game. We ran into the following problem:

On Android, when using the UIPanel.clipRange function for animating a mask, the visual update happens after a substantial delay, not immediately – while under Windows the update happens immediately, as expected. The masked widgets animate correctly, without delays, under both platforms.

The FPS is high, and there is no apparent lagging of any other kind. The problem happens only under Android, the Windows build is fine, and we haven’t yet tested it under iOS.

How can we fix this?

P.S. Is there a way to initiate a full redraw of the NGUI display list?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Android-only problem: delays while animating masks
« Reply #1 on: March 06, 2014, 08:51:20 AM »
Set UIPanel.baseClipRegion then call UIPanel's UpdateDrawCalls().