@tertle sorry for being annoying but does that mean currently (0.16) the OnUpdate cannot be burst compiled? If so, what is up with the [BurstCompile] decorators I see above some of the OnUpdate()'s in the samples?
Nah that’s not required. Entities.ForEach in SystemBase are automatically burst compiled unless you add WithoutBurst or WithStructuralChange. The WithBurst option just allows you to pass extra params such as CompileSynchronously or FloatMode etc.
@adammpolak Also, you can always check the Postprocessed IL code in DOTS > DOTS Compiler > Open Inspector… – you’ll see that the generated IJobChunk has a [BurstCompile] attribute:
(And won’t have it if you use WithoutBurst() on the ForEach)