rive-app / rive-app/rive-android
Really high memory usage with idle animations in Android
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 538
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
Description
Using a simple idle animation results in almost double memory usage.
| Without animation | With animation |
|---|---|
Provide a Repro
Attached is a sample project. Comment out RiveAnimation usage in MainActivity to see sample before.
Sample project: rive-sample.zip
Source .riv/.rev file
Borrowed sample from: https://rive.app/community/files/9467-18018-mememoji/
Expected behavior
lower memory usage.
Screenshots
Device & Versions (please complete the following information)
- Device: Android, Oneplus 8
- SDK Level: API 33
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the attached rive-sample project and its MainActivity, first comparing memory with RiveAnimation commented out and enabled on Android API 33. Profile the idle animation using the provided me.riv file and define done as reproducing and reducing the reported memory increase without breaking animation playback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100