Devtober Day 2: Dynamic Buffers

Day 2 of Devtober has come and we are cooking with gas. With the help of the r/GameDev community, I have found a solution to passing a random size list of transform  position into an entity.  This has been a huge hurdle prevent me from getting my AI System running in a efficient use of ECS. Since components have to have set size into order efficient allocate memories arrays and list cannot be used in directly in ECS. However with Dynamics Buffers, we can allocate a maximum allotted size for buffer and reserved that space on creation. This will be used in maintain a list of patrol point and attack able characters in range.

 

One small bug to overcome is the new unity Translation, ECS equivalent of Transform, does not update when using Hybrid ECS. I have previously written code with handle the update as Unity has not update the Job System that previous handle it after the depreciate the GameObjectEntity.

Transform

This entry was posted in Dev Log, Information, Unity, Updates, Video Games, WIP and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s