playMaker

Author Topic: Bool Test every frame vs Bool Changed  (Read 2570 times)

jess84

  • Hero Member
  • *****
  • Posts: 515
Bool Test every frame vs Bool Changed
« on: May 29, 2014, 02:00:42 PM »
Is one of these more efficient than the other?

Does it really matter than I have an object with 50 FSMs that rely on Bool Test (every frame) to progress?

cmy

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Bool Test every frame vs Bool Changed
« Reply #1 on: May 29, 2014, 03:44:10 PM »
As far as I know all the "Changed" actions use every frame, while the "Tests" and "Compares" just give you the option to toggle it on or off. So it's likely the exact same thing.

I would imagine 50 FSM's running Bool Test every frame would slightly eat away at your FPS.

TrentSterling

  • Junior Playmaker
  • **
  • Posts: 89
  • Someday I'll make games!
    • My Blog
Re: Bool Test every frame vs Bool Changed
« Reply #2 on: May 29, 2014, 10:27:44 PM »
50 bool tests would take no time at all. You'd have to worry more about different overheads from the number of gameobjects/fsms.

And 50 isn't much at all. I have 400 FSMs doing all sorts of stuff every frame, without issue.

EDIT: This gives me an idea to add stop stopwatch actions if they don't already exist. Would be nice to profile stuff in PlayMaker without UnityPro.

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Bool Test every frame vs Bool Changed
« Reply #3 on: May 30, 2014, 08:18:22 AM »
Great, thanks for that... I guess I won't need to rework that :)
(It's achievement unlocking stuff that I have on 1 gameobject / 50 FSMs)