Closed khltrifork closed 5 years ago
@khltrifork Please attach the aep
@khltrifork It turns out that the animation renders great with software rendering but there are a few bugs that I uncovered that caused setting the render mode to software to revert it to hardware acceleration. I'll fix those for this issue.
@khltrifork The slow frames with hardware acceleration are actually not in Lottie's code but in nSyncAndDrawFrame
in the framework which is why software rendering performs so much better.
I've got an animation, purely vector based with 0 png/webp images. It lags extremely much with 3.0.0 or higher (i've tested all versions above 3.0.0, including the newest 3.1.0 snapshot). With 2.8.0 it works smoothly and has no lag.
I've tried to create a completely basic new project, imported only Lottie and the 1 animation, and can recreate it.
https://lottiefiles.com/share/OXAN93
I've tried various combinations of forcing different RenderModes, but can't seem to get it to work smoothly. I've also tried to add it as both a raw json file in assets, as a ZIP file in assets, and putting it in the raw folder. No change.
Its fine on the lottiefiles test website, but not on Android. I've tested on emulator and 2 different real devices, it's the same.
Is there anything other then setRenderMode that i can tweak? I couldn't find anything