lottie-flutter icon indicating copy to clipboard operation
lottie-flutter copied to clipboard

tgs lottie very slow on android

Open mzelecom opened this issue 1 year ago • 5 comments

i load tgs file in GridView.in windows ok but in android very slow. i used 3.0.0-alpha.4. this is my code. Widget loadtgs(String imageUrl, double size) { return Lottie.network( imageUrl, decoder: LottieComposition.decodeGZip, width: size, height: size, filterQuality: FilterQuality.low, repeat: false, backgroundLoading: true, renderCache: RenderCache.raster, animate: false); } i attached the video.

https://github.com/xvrh/lottie-flutter/assets/20619476/41ea41e2-2603-40df-bcc6-f03a4971b778

in android(not flutter) i test rlottie.it is more powerfull than lottie. rlottie is a platform independent standalone c++ library for rendering vector based animations and art in realtime. this is link of rlottie

mzelecom avatar Dec 23 '23 04:12 mzelecom

Can you post the link to the tgs file?

I'm not sure I understand the comment about rlottie? Do you mean a native Android app with rlottie is more performant than a Flutter app and this library on the same phone? How does it compare to the normal Android Lottie library?

xvrh avatar Dec 23 '23 15:12 xvrh

hear files. tgs.zip

this video is rlottie.it is very fast.befor i use rlottie i used lottie it was very slow.telegram also use rlottie(link).

https://github.com/xvrh/lottie-flutter/assets/20619476/c8c1dcdf-515e-4852-b7e5-73ecffc14e7c

mzelecom avatar Dec 23 '23 15:12 mzelecom

How can someone use rlottie (c++) on Android? Is there an example somewhere?

xvrh avatar Dec 23 '23 16:12 xvrh

you can use AXrLottie for android .

mzelecom avatar Dec 23 '23 16:12 mzelecom

Is it possible to use rlottie in flutter?

echogit avatar May 13 '24 03:05 echogit