I am using Rive file for login animation which requires interaction like SMIBool, SMINumber etc. But when i initialize
final controller = StateMachineController.fromArtboard(artboard.artboard, 'State Machine 1');
if (controller != null) {
artboard.addController(controller);
}
The Cpu usage increase to 50% to 60% on simulator and feels very laggy on real android devices. For reference please check out this attached image
When i comment
artboard.addController(controller)
then cpu usage decrease like 4% to 5%. Please check out the attached image as well.
If somebody knows any fixes. It would be highly appreciated. Thanks
All answers will be appreciated.