SanderMertens / flecs

A fast entity component system (ECS) for C & C++
https://www.flecs.dev
Other
6.43k stars 450 forks source link

Pluggable storages #680

Open SanderMertens opened 2 years ago

SanderMertens commented 2 years ago

Describe the problem you are trying to solve. There are scenarios in which using a table-based storage has usability and/or performance issues:

Describe the solution you'd like An interface that makes it possible to use custom storage plugins which can be configured per component.

xentripetal commented 6 months ago

Its been a couple years since this has seen activity, wanted to check if this was still under consideration?

SanderMertens commented 6 months ago

Yep definitely! I'm currently working on v4, which removes a lot of blockers for this work :)

xentripetal commented 6 months ago

Great to hear, thank you!

I'm not very experienced with C but I will take a look and see if I can help contribute to this. Is there a design doc for how you see this being implemented?

SanderMertens commented 6 months ago

There isn't, but you can see the design in broad strokes here: https://github.com/SanderMertens/flecs/tree/storage_refactor