#Should I use DOTS

1 messages · Page 1 of 1 (latest)

cinder crown
#

I was wondering because im making a 2D factory simulation game. There's going to be a lot of items conveyers and factories to process and I am wondering if using ECS would be more efficient then sticking Mono Behaviors on every object.

wild hill
#

Broadly speaking, you will be able to achieve more performance using ECS, especially since it will force you to design your game with an optimized first approach.
That being said, you might also not need all that complexity, especially if you’re already used to a mono-behaviour approach when developing Unity games. ECS does have a steep learning curve.

Just by developing your game like you normally would and later optimizing the part that needs it, using burst, pooling and other optimization techniques could be enough for your game.
It will also matter what devices you are targeting: a game leveraging bursted jobs might run smoothly on mobile devices, but the battery consumption and heating issues could be enough to turn players away from your game. ECS would help in that aspect by being more efficient, not just more performant.

So, depending on your exact game scope, your budget/time constraints and your willingness to learn new, more complex ways of programming, DOTS might or may not be the answer.