playMaker

Author Topic: Which is better for performance (Bool Test or Send Event?)  (Read 799 times)

Silicon Power

  • Full Member
  • ***
  • Posts: 182
Which is better for performance (Bool Test or Send Event?)
« on: September 18, 2021, 04:24:00 AM »
Hi. I need to know which method would be better for performance if I use 10 Bool Test actions with every frame checked or use of 10 custom events on my fsm to use send event action?
« Last Edit: September 18, 2021, 04:29:09 AM by Silicon Power »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Which is better for performance (Bool Test or Send Event?)
« Reply #1 on: September 18, 2021, 07:23:49 AM »
Hi.
a bool test is around 1: 52 million operations per second
so wit 10 bools you should not worry on performance :)

Theoretically sending a event would be better since you are not doing that every frame.

But practically you probably need 1000's of bools to even see a difference.

So i this case you probably wat to see what's to most convenient