-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
☂️ Identify Performance Issues #336
Comments
EDIT Let me come back to this after testing now. In my use case, actually changing to use pure react-native-animated animations instead of Moti fixed the performance issue. It was appearing when calling handleSubmit from react-hook-form with many inputs, and actually passing the handleSubmit took 2 seconds due to input rendering again as I had I can show the code I used if requested. I don't have a repo to showcase this at the moment. |
Can you show the code please? I also have the same issue |
i also faced performance issues on android using MotiPressable in lists, moti skeleton also very slow. mainly when using moti, there are always lag in animations like opening bottom sheet, navigating to a next screen, removing moti completely, my app is very smooth now. i was using latest moti with last reanimated. |
Thank you for sharing! If anyone has a minimal repro it would help identify the issues a lot |
Hi! Thanks for this library! |
Hey I would really love to, I'm just slammed at the moment. Any help setting up an example in the repo showing a perf difference would help a lot |
So far it's been pretty much a few anecdotes of someone mentioning an issue in a massive list so I want to narrow it down to an example if possible |
Also want to see if it's related to Reanimated memory leaks: #322 (comment) |
@TamasFarago Getting back from holiday so I'll put some code here of the previous and current code. This is not a minimal repro but showing the use case where the issue appeared for me. This is pseudo code now giving minimal example:
|
Skeletons are really heavy and causing performance issues as well for me. |
When navigating to a list with only 10+ skeletons is causing a little lag. If I place for example 50+ skeletons It hangs for couple of seconds before navigating to the list screen with skeletons. |
@faljabi thanks for the update. Is this Android only? And are you using flashlist? |
For both iOS and Android. Android is even a bit slower. |
hi, same issue here for v 0.29.0, I'm currently using it in some flatlists of my app In some Android devices the app just got hang, it looks like a memory leak. Had to disable the skeleton before publishing my app, we are trying to make a workaround. For Android devices caused "ApplicationNotResponding: ANR" and for iOS devices caused "App Hanging: App hanging for at least 2000 ms" |
Will this be solved? |
Sighs, I just spent hours, trying to figure out why bottomSheet render was really slow. sighs PS: This happens even when i manually set loading to false. so either it is actively loading or not, it still causes the component it is used in to have a slow render, especially when that render is triggered by a state update from an action |
Is there an existing issue for this?
Do you want this issue prioritized?
Current Behavior
Let's find if there are any performance problems that have been identified in #322 (and somewhere else for skeletons.)
I think there may have been a regression with Moti related to reanimated 3 causing issues for
MotiPressable
andSkeleton
. It's possible it's a simple fix. I'd also like to compareAnimated.View
withMotiView
directly to identify potential causes.From what I've heard, the issue lies somewhere in
useMotify
. It is likely worklet related (I think).I welcome any feedback and support on how to identify performance issues. Thank you!
Expected Behavior
It should be as fast as Reanimated raw.
Steps To Reproduce
No response
Versions
- Moti: Latest
Screenshots
No response
Reproduction
N/A
The text was updated successfully, but these errors were encountered: