Improve load time for avatar that supports multiple clothes
I’m a software engineer, and I’m having an animator develop a Rive where an animated cartoon bird is capable of equipping a variety of clothes in a React Native app. Specifically, the bird is capable of wearing hats, ties, and shoes, and the Rive file supports a state for each of those clothing types. It also supports a boolean state that either renders the bird as standing or flying with the appropriate clothes on.
So there are the following states in the Rive’s state machine:
-Hats (number)
-Ties (number)
-Shoes (number)
-Standing/Flying (boolean)
Each clothing item is a WEBP that is roughly between 3 and 20KB in size, and there are about 50 clothing items embedded into the .riv file. Once loaded into the app, the file is quite performant, but I notice that the file itself seems to be a bit slow to load. When I initially load the file into my React Native app, I notice that it can take up to 1 second to render, I assume due to all the embedded assets in the file. It is noticeable when the first screen in the app is shown after the splash screen. Additionally, it can make navigation from screen to screen appear slightly latent when the destination screen contains the Rive file, especially when the phone is in Low Power Mode.
I’m curious if there’s any way in which the animator can design the file to improve the initial load time? I’ve tried different mechanisms from within the app, but it doesn’t seem like there’s much that can be done unless the Rive file itself is re-designed.
And advice is appreciated, and thank you for your help!