2d-inc / Flare-Flutter

Load and get full control of your Rive files in a Flutter project using this library.
https://rive.app/
MIT License
2.55k stars 469 forks source link

Flare Animation takes long on first appearance #274

Open sebastianbuechleratcamaelion opened 3 years ago

sebastianbuechleratcamaelion commented 3 years ago

Is it possible to load an animation on startup before it appears the first time? Otherwise it takes quite a while until the animation appears for the first time.

sebastianbuechler commented 3 years ago

I think here we can find a solution: https://github.com/2d-inc/Flare-Flutter/issues/235

remonh87 commented 3 years ago

@sebastianbuechleratcamaelion I experience the same. What you also can consider is trying to cache the shaders. I observed spectacular results when doing this on startup: https://flutter.dev/docs/perf/rendering/shader . Not super convinced it is a scalable solution but maybe it can be enough to solve your issue