.riv file should load quickly and managing the RiveFile yourself is not necessary. But if you intend to use the same .riv file in multiple parts of your application, or even on the same screen, it might be advantageous to load the file once and keep it in memory.
Example Usage
To cache a Rive file, you can create a strong reference to a
File object. This File can then be reused to create Rive objects.Artboards and state machines are unique when created using the create functions. This means that you can create a new Rive object with the same file, but with different (and unique) artboards and state machines.