kgorking / ecs

A header-only/importable c++20 implementation of an entity-component-system (ecs), with focus on a simple interface and speed.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do a single allocation for components in process_add_components()

kgorking opened this issue · comments

Same as with the ranges vector, create a new components vector and move stuff in there.
Should reduce number of allocations and keep the amount of allocated memory tight.

closed by #90