OpenXRay / xray-16

Improved version of the X-Ray Engine, the game engine used in the world-famous S.T.A.L.K.E.R. game series by GSC Game World. Join OpenXRay! ;)
https://discord.gg/sjRMQwv
Other
3.01k stars 455 forks source link

Research if we can introduce ECS #1117

Open Xottab-DUTY opened 2 years ago

Xottab-DUTY commented 2 years ago

Class inheritance based entities system in the engine has many problems. Entity component system may introduce benefits, but this should be researched.

Things to consider:

  1. We want to keep the compatibility with the vanilla game assets, e.g. scripts which are unaware about the ECS.
  2. We also want to provide a facility for game assets to utilize the ECS and its features, so that modders could benefit.
  3. There's so much code tied to another code, hacks, workarounds and tangles in the code, so it's a challenging task.
Xottab-DUTY commented 9 months ago

https://github.com/SanderMertens/flecs https://github.com/skypjack/entt

https://github.com/abeimler/ecs_benchmark

https://github.com/SanderMertens/ecs-faq#what-is-an-archetype-based-ecs