What are the pros and cons of using bit field for boolean etc?

vebski
Mon, 02 Jun 2014 13:22:09 +0000
Debugging, Optimization, & Profiling

I was looking through Shooter Game code, and I spotted usage of bit field for stuff like booleans etc. I come from Unity environment so I’m not used to them. However I love optimization so I will stick to them.

But what pros and cons we get from using it? How much it actually helps with RAM usage when more and more people have 8GB RAM. Dose it help with CPU cache?

8 posts - 5 participants