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

Support adding spans of data

kgorking opened this issue · comments

If the user needs custom data, they can produce it themselves and then use the add-span function to add it to entities

component_generate/32                                   1394 ns
component_generate/64                                   1599 ns
component_generate/512                                  3960 ns
component_generate/4096                                10865 ns
component_generate/32768                               69915 ns
component_generate/262144                             537415 ns
component_add/32                                        1278 ns
component_add/64                                        1216 ns
component_add/512                                       1407 ns
component_add/4096                                      2284 ns
component_add/32768                                     6169 ns