by PudgePacket · 6y ago · 0 comments
Based on the access patterns in the code (iterating through every physics object every step), keeping the physics objects behind a pointer is actively cache hostile! If at all possible try to have these objects in contiguous memory.
There is still that indirection though :(