gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > bitfields on the DS

#172672 - zelbo - Wed Feb 24, 2010 2:41 am

i remember reading somewhere (don't recall where at the moment, possibly in these forums) that on the DS, an int would be better than a boolean because the boolean would clog things up a bit and possibly even take up more memory than an int. Is this true? if so, what about a bitset? or a bool vector?

#172673 - sajiimori - Wed Feb 24, 2010 3:15 am

It sounds like you misunderstood/overgeneralized someone's advice, or you got some bad advice (or both! heh).

Use bool when you mean bool. If you've got an array of booleans, you could use a bitset if you want -- there are tradeoffs to that, of course. (If you have to ask what they are, they probably don't matter for you right now.)