#Is there a way for ensuring order on parallel jobs?

1 messages · Page 1 of 1 (latest)

frank walrus
#

only if you can pre-determine what index each job writes to

#

Generally you don't split work like this and instead parallelize it by doing a separate mesh per thread

weak wren
frank walrus
#

i'm surprised vert and face counting is separate?

#

you can usually determine 1 from other

weak wren
#

But still, I have not quite managed to determine the same order for the vertices on a parallel list

#

I am doing a MInecraft-Like chunk generator, I already go this working on a non parallel job system but was looking for improving it on a parallel one

#

This is the result of missalign of native list data (in this case float3)

#

I am using AddNoResize for adding these positions, but I have seen there is AddRangeNoResize, I have never used pointers so I don´t know how that is any different to AddNoResize, could that be the way to go?

frank walrus
#

it makes sense to do 1 chunk per thread

#

rather than splitting that chunk up over multiple threads

weak wren
#

So I should have a single job for handling all I need?

frank walrus
#

doesn't have to be 1 job

#

depends what you're doing

#

over 4 years ago

weak wren
#

I see, Hmmm, currently I am doing a chunk per thread, it works just fine using non parallel jobs

#

I only lose data order on native lists

frank walrus
#

if you're doing a chunk per thread i'm not sure what you're merging then?

#

each chunk should have its own list

weak wren