Performance Issues with large applications? #6559
Unanswered
alexkuttig
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi again, I tested the same setup with React Native 0.76 and Reanimated 3.16.1. It works smooth on the old architecture, but not on the new architecture. React Native's built in Animated API works stable at 60fps on old and new architecture. Best, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
First of all - thanks for the great framework. I really like it and appreciate your contribution to the React Native ecosystem.
I have a question regarding Reanimated performance in large apps.
I created a simple animation, which changes the style of my page header, consisting of an image and a text, based on a scroll view offset. I use a sharedValue and an animatedScrollHandler for the animation. The animation does not trigger anything else like state updates or other animations.
This works fine when using in a single screen. But when using in our real world app, it starts to drop frames (UI and JS thread). Basically, the more screens are mounted, the slower the animation gets. It happens in release and dev mode and mainly on android. When I create the same animation with React Native's built in Animated API, this problem doesn't occur. It works stable at 60fps.
We are using the new architecture in our app and all examples here.
So my question is: Is there anything which can slow down reanimated when having a large apps (large Component Tree, many other animations, even if not running)? Is there anything we have to avoid, to prevent Reanimated from slowing down?
We use React Navigation in our app and I already tried to use enableFreeze().
I would be super thankful for an answer and any tips/hints what could cause this performance problems with Reanimated.
Beta Was this translation helpful? Give feedback.
All reactions