Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mananaysiempre
on Dec 20, 2023
|
parent
|
context
|
favorite
| on:
Show HN: Interactive ECS Systems/Component Explore...
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?
meheleventyone
on Dec 20, 2023
[–]
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.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: