Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: iEpic on January 13, 2017, 02:47:45 PM

Title: Using too many Bools???
Post by: iEpic on January 13, 2017, 02:47:45 PM
Does using a lot of global bools and testing them every frame impact performance at all?
Title: Re: Using too many Bools???
Post by: Fat Pug Studio on January 14, 2017, 12:40:59 AM
What number is too many? 5, 10, 50000 bools?
Title: Re: Using too many Bools???
Post by: iEpic on January 19, 2017, 10:57:19 AM
like around 300
Title: Re: Using too many Bools???
Post by: djaydino on January 20, 2017, 01:50:28 AM
Hi,
In standard you always want to try using less as possible 'every frame'
but if you have to, you can use the profiler to see how much it impacts on the performance.

Are you testing the bools each separately or with a single action (bool all true/false)

You might wanna try different solutions.
Maybe you can use arrays or only test the bools on a certain moment.
it all depends on your project.