How to safely call an FAutoDeleteAsyncTask inside of an FAutoDeleteAsyncTask?

Hello all,

I’m trying to optimize some procedural generation off of the main thread and encountered some issues. Currently I’m just splitting off some of the procedural loop work as separate FAutoDeleteAsyncTasks. However, in one section i have a loop within one of these tasks which I would like to branch off as its own task (generating a tree duration terrain generation). Is it okay to just call another FAutoDeleteAsyncTask inside of the other FAutoDeleteAsyncTask for the trees or should I duplicate some loops and call it in the main thread?

Right now its giving me some bazar response (trees are not spawning where there should) so I’m suspecting its related to the nested FAutoDeleteAsyncTasks.

Any insight would be appreciated!
Thank you.