Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Slow render times / performance tips?#984

Unanswered
iway1 asked this question inQ&A
Discussion options

I have some lottie animations who's initial render is slow and lags the UI of the application for about half a second. I'm not sure what the root cause is.

Does anyone know what the most likely performance issues are in Lottie? File size? Number of distinct elements?

You must be logged in to vote

Replies: 1 comment

Comment options

Hi@iway1,

If your Lottie file is a large JSON, chances are that is the prevalent issue. By default, metro loads certain file types on the JS side, including JSON files, and it needs to be sent over the bridge for us to be able to use it, and that causes an unneeded overhead and slows things down.

While we are waiting for the new architecture to become more mainstream so we can see if that tech can help us alleviate the problem, we have introduced dotLottie support in the meantime. dotLottie is a newer, smaller format type, and since it is not one of the file formats that Metro auto-loads, we have set it up in a way for the asset to be loaded on the native side, which should alleviate any sort of performance penalties. You can read more about ithere andhere.

If you already have JSON files, you can also switch them to dotLottie quite easily with tools such asthis

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@iway1@TheRogue76

[8]ページ先頭

©2009-2025 Movatter.jp