Author Topic: Flickering Issue  (Read 13783 times)

PebbleBug

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Flickering Issue
« Reply #15 on: November 26, 2013, 03:54:55 AM »
Yes, fixes the flickering issues for me.
Thanks.

kofight

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: Flickering Issue
« Reply #16 on: November 26, 2013, 03:56:39 AM »
Fixed, thanks ;)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Flickering Issue
« Reply #17 on: November 26, 2013, 04:05:41 AM »
Unfortunately in the process I broke something else <_<

...so I just re-uploaded f2 with a fix for that. Readme wasn't updated anyway.

Antti

  • Guest
Re: Flickering Issue
« Reply #18 on: November 26, 2013, 10:04:38 AM »
This is still an issue for us (maybe we are doing it wrong  ;)). It looks like the whole UI flickers sometimes. Everytime I have encountered flickering, the following happens:

  • Frame n: UIPanel.Find() is called, mRebuild is set to true, and full draw call rebuild is triggered on LateUpdate().
  • Frame n + 1: All UI widgets are missing.
  • Frame n + 2: All UI widgets are visible, but some are ill-positioned (centered).
  • Frame n + 3: All UI widgets are shown properly.
This happens on both editor on PC and on iOS devices, so I guess it's not platform dependent. I have tested with the latest version 3.0.6 f3 on Unity 4.2.2.

beermoney

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 80
    • View Profile
Re: Flickering Issue
« Reply #19 on: November 26, 2013, 10:10:06 AM »
3.0.6.f3 resolved the flickering issues I had

I know the asset store had 2 versions of NGUI on earlier, might be worth checking it wasn't a botched update?

Antti

  • Guest
Re: Flickering Issue
« Reply #20 on: November 26, 2013, 10:57:52 AM »
Re-downloaded and re-imported NGUI, I have the latest version for sure.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Flickering Issue
« Reply #21 on: November 26, 2013, 11:13:26 AM »
I can use a repro case, Antti.

Simie

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
Re: Flickering Issue
« Reply #22 on: November 26, 2013, 03:32:41 PM »
That's the flickering resolved for me, thanks Aren. The alpha stuff still happens, but my workaround works fine for that.

boofcpw

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 30
    • View Profile
Re: Flickering Issue
« Reply #23 on: November 26, 2013, 06:03:08 PM »
Got the latest update. Can confirm it fixes all my issues. Thanks so much for that fast fix!

boofcpw

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 30
    • View Profile
Re: Flickering Issue
« Reply #24 on: November 27, 2013, 01:08:14 AM »
I appear to be getting occasional flickering (nothing like before where the whole panel would break) when I turn on/off a widget using setactive(). Im not entirely sure if this happened previously or not, but I feel like I haven't seen it before. It only happens for what appears to be a single frame.

Antti

  • Guest
Re: Flickering Issue
« Reply #25 on: November 27, 2013, 02:26:14 AM »
We got our issue solved.

We had a bug in our code: we occasionally created a widget under a wrong parent, having no panel in the ancestors of the UI hierarchy.

(Thanks for the latest performance optimizations btw! We appreciate them a lot :))


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Flickering Issue
« Reply #26 on: November 27, 2013, 03:35:06 AM »
If you have any "before" and "after" profiler screenshots, I'd be very curious to see them :)

Antti

  • Guest
Re: Flickering Issue
« Reply #27 on: November 27, 2013, 06:15:15 AM »

Here are profiler screenshots from the same scene, first with NGUI 3.0.4, then with 3.0.6 f3.

There where other changes than NGUI version between those builds too, e.g. the spikes you see in 3.0.4 are gone because of those.

But AFAIK the CPU time difference 2.32 -> 1.22 and the absence of memory allocations should be directly contributable to NGUI optimizations.

ikuniojp

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 29
    • View Profile
Re: Flickering Issue
« Reply #28 on: November 27, 2013, 07:28:09 AM »
On 3.0.6f4.

I have flickering problem too...
But mine happen when the scene toggle.
Just a quick flick but annoying.

freeExec

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Flickering Issue
« Reply #29 on: December 12, 2013, 09:34:12 AM »
Between OnEnable Update and where they anchoring succeeds sprite render one frame. It is necessary to add a forced binding while OnEnable.

UIWidget.OnEnable()
+UpdateAnchors();