GridVids
Sign in with YouTube

Spawn Grid Of Entities In Jobs Context - Fast!! - Unity ECS/DOTS

Forging Station Aug 22, 2020 13:08
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Don't Miss
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Mark watched
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Hide
Open in popup Open on YouTube
Share video

Share video

Copy the GridVids link or iframe code.

Video link
Iframe code
Iframe content

In this short video, we will look at one of the simplest ways to spawn entities from within (parallel) Jobs context - in a grid pattern We will be using Entity Command Buffer to record all the structural changes and playback all the events in the predefined sync point. We will build upon this when we develop the DOTS Navigation (NavMeshQUery) system. I have kept the explanation as simple as possible with regards to Burst compiler and Entity Command Buffer. Please go through the Unity Documentation if you need to know more - especially about command buffers as they are extremely helpful and also a very good practice to follow. Performing structural changes using Command buffers enables us to use burst compiler even on the main thread if need be. Synchronous compilation attribute not only works before frame-0 but in general it is used to make sure the burst compilation happens before the job is scheduled. If not, normally it would happen asynchronously - loosely speaking during the gameplay.
Science & Technology
#Forging Station #Sumera Sankruthyayana #Unity DOTS #Unity ECS #Spawning #Spawn entities in jobs #Entity Command Buffer #Begin initialization #Extremely Fast #Performance #Multithreaded #Spawner