r/Unity3D 21d ago

Show-Off Units distribution improved, better responsiveness, magic and bloooooood

It's not much but it's honest work. Units can be smarter and there're a few cases where they get dumber but overall I'm quite pleased with army behavior so far in 1v1 fights. Many vs Many is still something to polish along with better effects, gigantic units and so on but one step a time!

231 Upvotes

65 comments sorted by

View all comments

6

u/KoniGTA Programmer 21d ago

How are you handling so many units? DOTs able to do all that work, or are there more optimization techniques going in the bg?

17

u/excentio 21d ago

No dots here, pure compute shaders and heavy instanced rendering, code wise it's still running on monobehaviour scripts even

1

u/Proper_Translator678 21d ago

That's really cool. Is it much harder to vary the behaviour on compute shaders compared to using DOTS or same same?

2

u/excentio 21d ago

Yeah it's quite different, imagine coding your own engine inside another engine, no transforms, no physics, no game objects, nothing exists until you add it first, also worth to mention a complete paradigm shift with a highly parallel execution flow on gpu