The job system works great for situations where the same task is performed on many items.
But how to apply this system when a job has multiple outputs ?
I’m working on a boid system and would like to add spatial hashing, but I’m having trouble getting my head around that.
I’ve got a job that writes each boid’s position hash to a NativeArray, but how to collect these into buckets ?
It would mean that the job would process each boid and write its position somewhere at an arbitrary location of another array? That sounds like job-system-heresy.
Are slices the answer here ?
Thanks in advance, Patrick
P.S.
Where can one find the best reading material regarding the job system ??