DavidPeicho / ecstra

Fast & Flexible EntityComponentSystem (ECS) for JavaScript & TypeScript
MIT License
51 stars 2 forks source link

Add API for batch modification of entity #31

Open DavidPeicho opened 3 years ago

DavidPeicho commented 3 years ago

Right now, it's a bit "slow" to add / remove component. Adding / Removing a bunch of components will trigger multiple archetype transfer. It would be great to have a batch addition / removal without creating temporary allocations when possible. It might be tricky to do.