Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Silicon Power on September 18, 2021, 04:24:00 AM

Title: Which is better for performance (Bool Test or Send Event?)
Post by: Silicon Power 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?
Title: Re: Which is better for performance (Bool Test or Send Event?)
Post by: djaydino 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