Entity Component System is all you need?

A intro to Game Objects, Components and the Entity Component System in Unity


Game Objects and Components

So why ECS

  1. Easier to maintain code
  2. Massive scale
Unity Mega Cities Demo

Easier to maintain code

  1. Entities: which refer to component instances
  2. Components: which hold data
  3. Systems: which process data

Massive scale

  1. Take full advantage of Processor improvements
  2. Intelligently exploit data locality to not have Memory bottleneck your game
A mere 5% utlilization
46% utilization!

Array of Struct vs Struct of Arrays


Next steps


My favorite references

More references



Robots will save us

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store