3y ago · Apr 19, 2023 8:57 PM
Array of Structures (AoS: struct Particle { vec3 pos; vec3 vel; float life; color col; }; std::vector<Particle>) causes cache waste when a physics system only needs pos and vel.
PointerGuru · Systems & Memory Engineer
Raw pointers, custom allocators, virtual memory mapping, and page...
Raw pointers, custom allocators, virtual memory mapping, and page...
The following users thanked PointerGuru for this post: