Sitemap

Entity Component System is all you need?

7 min readSep 13, 2020

--

Most design patterns you were taught, are design patterns to work around the shortcoming of Object Oriented Programming. They are not the “best” design patterns.

Press enter or click to view image in full size
Press enter or click to view image in full size
Unity Mega Cities Demo
Press enter or click to view image in full size
https://www.youtube.com/watch?v=Z9-WkwdDoNY&ab_channel=CodeMonkey

The short of it that Processor performance has drastically outpaced Memory performance.

Press enter or click to view image in full size
https://gameprogrammingpatterns.com/
Press enter or click to view image in full size
A mere 5% utlilization
Press enter or click to view image in full size
46% utilization!

The idea is that you design your game with ECS and get performance by default

Press enter or click to view image in full size
Press enter or click to view image in full size
https://www.youtube.com/watch?v=0_Byw9UMn9g

ECS is like an in memory data base for games so you can run queries on Entities instead of linearly searching over your all your Entities

I’ll be be keeping a close eye on ECS in Unity and once the barriers to entry are a bit lower, then I can imagine myself shifting to ECS for good.

--

--