DavidPeicho / ecstra

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

Feature: automatically increase `maxComponentType` #9

Open DavidPeicho opened 3 years ago

DavidPeicho commented 3 years ago

When the max number of component type is reached, the world shouldn't crash but should re-compute All ids. Obviously, it's not the best case for performance, but people should be aware that declaring the good count is better.