That’s weird. The whole loop in FMyTask::DoWork
should be completely cut-out by the compiler, because it has no effects.
The problem is probably with the allocation as changing allocator type, for example to
TArray<float, TInlineAllocator<4>> Biomes;
solves the problem.