News for hackers. Stuff that matters.
Re:Show HN: Interactive ECS Systems/Component Explorer for C... by mananaysiempre on Wednesday December 20, 2023 @03:49AM (#38706631)
So, uh, am I reading that right? One part is “use array of structs for ECS” and the other is “use struct of arrays for ECS”? Really?
Re:Show HN: Interactive ECS Systems/Component Explorer for C... by meheleventyone on Wednesday December 20, 2023 @05:25AM (#38707133)
Yeah the optimization is similar to the realization that array-of-structs can be the faster memory layout if you use all/most of the members of the struct. So you organize memory by archetype rather than keeping the components separately.