Putting Visibility Flags to a good use
There’s a lot of memory waste in a MovableObject, just to name a few: The first two take 2 bytes per and cause lots of branches and cache misses (if visible && getCastShadows…), and the third one while it doesn’t take extra ram, it’s a nasty call stack of virtual […]