rive-app / rive-flutter

Flutter runtime for Rive
https://rive.app
MIT License
1.16k stars 180 forks source link

Jank on complex rive #343

Open ductranit opened 10 months ago

ductranit commented 10 months ago

Description

My rive animation has many jank issues, the frame rate is always above 27ms And I can see slow frame in this video

https://github.com/rive-app/rive-flutter/assets/2063905/23a6c792-ba96-436d-8195-9f3ed805ac82

It happens on both latest master and stable channels

Steps To Reproduce

Steps to reproduce the behavior:

  1. Go to sample project
  2. Run project on real device (android or ios)
  3. Click on play button
  4. See slow frame error

Source .riv/.rev file

https://github.com/ductranit/test_rive/blob/main/assets/factory.riv

Expected behavior

There is no jank

Screenshots

Screenshot 2023-08-30 at 14 52 16

Device & Versions (please complete the following information)

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.13.1, on macOS 13.2 22D49 darwin-arm64, locale en-VN) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [✓] Xcode - develop for iOS and macOS (Xcode 14.3.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] VS Code (version 1.64.0) [✓] VS Code (version 1.81.1) [✓] Connected device (3 available) [✓] Network resources

HayesGordon commented 9 months ago

Hi @ductranit I did a quick test and it seems to be related to this issue with Impeller.

You can try to disable Impeller by running: flutter run --no-enable-impeller and seeing if you're still experiencing it.