Improve transition animation performance #1964
Unanswered
LucasPennice
asked this question in
Q&A
Replies: 2 comments 5 replies
-
A first step here would be to avoid creating a SkMatrix for each frame/component: https://shopify.github.io/react-native-skia/docs/animations/animations#performance Now if you have a lot of repeating patterns you want to animated, you might want to looking to having them as a texture: https://shopify.github.io/react-native-skia/docs/animations/textures |
Beta Was this translation helpful? Give feedback.
3 replies
-
expo go won't work with these versions, you would need to use react native
cli for this.
…On Tue, Nov 7, 2023 at 10:19 PM LucasPennice ***@***.***> wrote:
I would love to make a repo to make thing easier. I've been trying for
almost the past 2 hours to get one working with Expo Go so you don't have
to build the project locally but I couldn't find a way to avoid errors
(everything works fine on my project with a dev build)
Apologies for the inconvenience
Here's what my dependencies look like
***@***.***/react-native-skia": "^0.1.216",
"react-native-reanimated": "^3.5.4",
"react-native": "0.72.6",
Are these the package versions I should be using?
—
Reply to this email directly, view it on GitHub
<#1964 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKXVRNFTPNC3STFF4IQ73YDKQU3AVCNFSM6AAAAAA7BUQE52VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKMBTGUZDG>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion corresponds to this (https://twitter.com/LucasPennice/status/1721899082221003027) tweet
"
Hello @wcandillon
Would you mind sharing some advice?
I have a deterministic animation where I need to animate transitions for a lot of elements
Is there something I can do to improve performance?
I'm getting 40fps average and constant high CPU usage
"
Beta Was this translation helpful? Give feedback.
All reactions