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

Change component pool lookups to be O(1)

kgorking opened this issue · comments

https://godbolt.org/z/cTbbnbcTx

This removes the need for:

  • runtime std::map lookups
  • sorting keys in the map
  • hacky type name hashing

Breaks use of multiple ecs::runtime instances, and offers no speedup