Entity Component System is all you need?

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

Intro

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
https://www.youtube.com/watch?v=Z9-WkwdDoNY&ab_channel=CodeMonkey

Massive scale

https://gameprogrammingpatterns.com/
  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

https://www.youtube.com/watch?v=0_Byw9UMn9g

Next steps

References

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