UIWidgets icon indicating copy to clipboard operation
UIWidgets copied to clipboard

iOS Simulator poor performance

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

Hello guys, I'm testing the Samples of this project from a MacBook Pro (TouchBar 2017), and they are working well on Android, but testing from iOS Simulator the examples are very slow. Thanks in advance! 👍

jdnichollsc avatar May 27 '19 03:05 jdnichollsc

I have profiled it a bit and this lib is generally has poor performance, not suitable for mobile at all. It takes almost two seconds (!) to render one frame on my lower end device during the animation. It also has a hell lot of GC.Alloc code that sometimes allocates 250 KB (!) of memory every frame during animation.

665 ms just for scripts image

1738 ms to render a frame image

HOWEVER! This lib is a gem just because it's something new and absolutely unusual for Unity. It uses custom off-screen rendering to enable both runtime and editor applications (I have never seen anything like this "GalleryApp" inside a simple Unity Editor Window). It is definitely something worth spending time on.

KumoKairo avatar Jun 01 '19 10:06 KumoKairo

Hi guys, thanks a lot for your kind advice !

Yes, since we are a very tiny team, we choose to work on only the functionalities at the beginning of this project and simply leave behind all the optimization jobs. This strategy helps us to finally make our first release on the 8th month of the development.

Now, for our next release, the performance optimization is among the top items on our todo list. Actually, we are already working on it for nearly 1 month and will push the codes to github asap when it is done. Wish we can close this issue then :-)

zhuxingwei avatar Jun 10 '19 06:06 zhuxingwei

Thanks for this project folks! 🥇

jdnichollsc avatar Jun 11 '19 15:06 jdnichollsc

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