MineInAbyss / geary

ECS framework made for Kotlin
https://docs.mineinabyss.com/geary/
MIT License
49 stars 11 forks source link

feat(engine): Fast system matching #67

Open 0ffz opened 2 years ago

0ffz commented 2 years ago

Currently when a new archetype is created, it iterates over all systems and caches which ones match it.

A more clever idea involves creating graphs similar to the archetype tree, for what systems should be tracked, untracked, or triggered when a component gets added or removed.