0

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 Cpu Usage with addController

When i comment

artboard.addController(controller)

then cpu usage decrease like 4% to 5%. Please check out the attached image as well.Cpu usage without add controller

If somebody knows any fixes. It would be highly appreciated. Thanks

All answers will be appreciated.

Hamza Malik
  • 86
  • 1
  • 7

0 Answers0