|
|
|
|
|
by nulldata
1711 days ago
|
|
ECS might have a higher initial complexity overhead, but once you scale up, ECS can really help you keep complexity at bay. There's a great talk [0] from the Overwatch developers where they talk about how they built Overwatch using the ECS architecture. They barely mention performance at all, but instead talk about how it helped deal with complexity. [0] https://www.gdcvault.com/play/1024001/-Overwatch-Gameplay-Ar... |
|
Consider for example, a snippet that reads along the lines of:
It's very nice to attach something like a "ScopeContext" component to each Entity that has a "TokenLine" component, that is a Vec of EntityIds that are sharing values into scope. Very easy to model and add without interfering with other data structures.