Dreamers Inc

Devtober Day 1

Advertisements

In an effort to get back on track with the project, I am trying my best to take part in Devtober this year. It’s heavily inspired by the popular Inktober, which is a challenge about doing an inked drawing every day of October. Except here the focus is on game development. The rules for this challenge are simple

So to kick off this Devtober, I fired up Unity and Visual Studio and got to work converting my Utility AI System from Monobehaviour to Unity DOTS, Data Oriented Tech Stack. Today was a day of learn how to think about how to structure code. The power of ECS/DOTS is being able to handle work in batch and splitting that work load work to different threads. The challenge is that is a completely different mind set from MonoBehaviour and  GameObjects. Also, the development is not completed either.

 

Once the ECS/DOTS click for you, it really starts to become quick in easy.

First attempt at write the code to evaluate distance to target 

Final Version 

Both of the methods above perform the same calc. However the first attempt take rough .56ms to distance to a point for 500 Entity/GameObject, while the second takes only .07ms on a 1800x running stock. This test were run in editor.

With one day down and better understanding of the API, this could be a great challenge

 

 

Advertisements

Advertisements