Boids - IjobEntitiyBatch Vs Entities.Foreach Is it worth the extra lines of code?
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