#Entitie system

1 messages · Page 1 of 1 (latest)

tranquil moat
#

So I want to move all the entities with this code it works when i use ".Schedule()" but i want to use ".ScheduleParallel()" this is the code and these are the errors

west tide
#

what i'm guessing is happening is that unity doesn't want to potentially implement race conditions with a schedule parallel

#

schedule will implement only one job while schedule parallel has the possibility to implement more

#

it doesn't want two jobs trying to access the same native array

#

is there any good reason you want to use scheduleparallel > schedule?

tranquil moat
#

exactly

#

I m learning ECS and i want to know how to do it

#

should i declare the native arry inside the foreach and then dispose it also inside it ?

west tide
#

i'd recommend just using schedule but if you really need to use scheduleparallel you may want to look into IJobEntityBatch

#

what ecs version are you using?

tranquil moat
#

the last one

west tide
#

1.0 exp?

tranquil moat
west tide
#

however i would just recommend using .schedule unless you are handling multiple chunks of entities

#

oh thats .51

tranquil moat
#

there is newer version than that ?

west tide
#

i wouldn't recommend using it,

#

there seems to be a TON of crashes according to other people

tranquil moat
#

what version do u recommend

west tide
#

0.51 (the one you're using)

west tide
#

so it should be useful to learn about that

#

anyway, back to the main topic:

tranquil moat
#

Alright i will learn about it thank you for helping