NSSTC / sim-ecs

Batteries included TypeScript ECS
https://nsstc.github.io/sim-ecs/
Mozilla Public License 2.0
81 stars 12 forks source link

Make components Objects-of-Arrays (like BitECS) #55

Closed minecrawler closed 1 year ago

minecrawler commented 2 years ago

This should be transparent, so that the current API does not change - ideally. Also, a way to provide explicit types should be provided, so more optimal storage types can be used.

The translation from array-of-objects components to objects-of-arrays can happen on maintain(). Query caches should still remain an array-of-objects, though, because that's how they are used.

minecrawler commented 1 year ago

Scratched, but maintain is removed for good