UIWidgets icon indicating copy to clipboard operation
UIWidgets copied to clipboard

Huge GC allocations

Open FaizanDurrani opened this issue 6 years ago • 4 comments
trafficstars

Getting large amounts of GC calls and framerate goes down to 14fps when clicking the hamburger button for the sidebar or the button in the top-right of the App Bar

Profiler

Unity Version: 2018.3.2f1 Device: Nexus 5 Project: MaterialSample

FaizanDurrani avatar Mar 27 '19 15:03 FaizanDurrani

Thanks for reporting this. We will take a serious look into that.

kgdev avatar Mar 28 '19 13:03 kgdev

I should mention that this happens in Development builds with UIWidgets_DEBUG. In Release builds it drops FPS for the first tap on both the buttons but doesn't drop FPS for any taps after that.

FaizanDurrani avatar Mar 28 '19 15:03 FaizanDurrani

[Unity 2019.1.7f1 + UIWidget 1.0.6]

Yep, There're just too many GC allocations scattering all over the place.

In the Counter example, even if we just sit idle, it would generate 300B GC every frame, In the Gallery example color section, when the animation is active it could easily takes 200~800KB GC every frame,

This libary is VERY promising, but it's currently more fit for editor script than game runtime.

TMPxyz avatar Jul 18 '19 05:07 TMPxyz

We have just released a bunch of optimization early this month on GC allocation and rendering. Please try the latest UIWidgets and let us know how you feel. Cheers !

zhuxingwei avatar Sep 25 '19 01:09 zhuxingwei