potatoengine / potato

Hobby C++ game engine
MIT License
38 stars 2 forks source link

Simplify ECS #291

Closed seanmiddleditch closed 2 years ago

seanmiddleditch commented 2 years ago

Converts the ECS from a data-oriented archtype-based system to a much simpler storage-per-component model using hash table lookups by EntityId. There's still room to make this faster and more efficient (e.g. sparse sets, hybrid storage, meta-only archetypes, query/select-query optimization, etc.).

Changes:

Reasons: