playMaker

Author Topic: Using too many Bools???  (Read 982 times)

iEpic

  • Playmaker Newbie
  • *
  • Posts: 48
    • View Profile
    • IndieGamerWorld
Using too many Bools???
« on: January 13, 2017, 12:47:45 PM »
Does using a lot of global bools and testing them every frame impact performance at all?

krmko

  • Beta Group
  • Hero Member
  • *
  • Posts: 1000
    • View Profile
    • Fat Pug Studio
Re: Using too many Bools???
« Reply #1 on: January 13, 2017, 10:40:59 PM »
What number is too many? 5, 10, 50000 bools?

iEpic

  • Playmaker Newbie
  • *
  • Posts: 48
    • View Profile
    • IndieGamerWorld
Re: Using too many Bools???
« Reply #2 on: January 19, 2017, 08:57:19 AM »
like around 300

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4616
    • View Profile
    • jinxtergames
Re: Using too many Bools???
« Reply #3 on: January 19, 2017, 11:50:28 PM »
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.