#Entitie system
1 messages · Page 1 of 1 (latest)
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?
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 ?
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?
the last one
1.0 exp?
however i would just recommend using .schedule unless you are handling multiple chunks of entities
oh thats .51
there is newer version than that ?
i wouldn't recommend using it,
there seems to be a TON of crashes according to other people
true
what version do u recommend
0.51 (the one you're using)
keep in mind, unity is going to be discouraging entities.foreach in favour of ijobentity and ijobentitybatch
so it should be useful to learn about that
anyway, back to the main topic:
Alright i will learn about it thank you for helping