Bit flags instead of bools?
in this Entity struct in entry_randygame.c file in randy's fork there are 4 bools, wouldn't it be better performance instead to create a u8 entity_flags and use bit flags instead such as ENTITY_DESTROYABLE, ENTITY_IS_VALID, ENTITY_IS_ITEM, etc?
1
10 comments
Fahad Alqarni
1
Bit flags instead of bools?
powered by
Ooga Booga Game Devs
skool.com/game-dev-grinders-8513
A group for game devs who want to ship great games from scratch in C, while mastering the ancient art of Caveman Programming
Build your own community
Bring people together around your passion and get paid.
Powered by