playMaker

Author Topic: Does an FSM waiting for an event use CPU? [Solved]  (Read 2043 times)

Tricky_Widget

  • Junior Playmaker
  • **
  • Posts: 62
Does an FSM waiting for an event use CPU? [Solved]
« on: April 07, 2015, 12:52:29 PM »
I'm developing for mobile, so CPU use is critical.  I find I have a lot of FSMs that are sitting idle waiting on an event.  Are these waiting FSMs using CPU cycles while they're waiting?

Thanks!
« Last Edit: April 07, 2015, 01:03:34 PM by Tricky_Widget »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Does an FSM waiting for an event use CPU?
« Reply #1 on: April 07, 2015, 01:02:08 PM »
To my understanding its the same cost as a script doing nothing in Update(), but waiting for other valid methods to be invoked.

Which is basically moot.

You should see anything unusual in the profiler.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Tricky_Widget

  • Junior Playmaker
  • **
  • Posts: 62
Re: Does an FSM waiting for an event use CPU?
« Reply #2 on: April 07, 2015, 01:03:15 PM »
To my understanding its the same cost as a script doing nothing in Update(), but waiting for other valid methods to be invoked.

Which is basically moot.

Fantastic, thanks!  :D