GridVids
Sign in with YouTube

Boids - IjobEntitiyBatch Vs Entities.Foreach Is it worth the extra lines of code?

Forging Station Aug 28, 2021 08:37
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

Today we are messing around with the usage of IJobEntityBatch instead of Entities.Foreach() to see if we gain or lose performance in Boids/flocking simulation. We are also using Hybrid Renderer V2 - Ran into an unexpected issue where materials in entities were just rendered black. Note that extra lines of code need to be written if you ever choose to use IJobEntityBatch over Entities.Foreach(). Make an informed decision if you going this route by going through the documentation and use cases where it would shine. Know more here- https://docs.unity3d.com/Packages/[email protected]/manual/ecs_ijobentitybatch.html Source code on GitHub https://github.com/ForgingStation/Boids-Using-IJobEntityBatch
Gaming
#Forging Station #Sumera Sankruthyayana #Flocking #Boids #Unity #DOTS #Boids using unity Dots #Ijobentitybatch #Dots IjobEntityBatch #Unity ECS #Boids simulation #Entities.foreach #Foreach #Entities #Hybrid renderer V2 #V2 #Hybrid #Renderer #Dots Hybrid renderer v2 #Material #Game Object Conversion