Download

Threading

Hi everyone,

Can someone please explain the different ways of creating threads in UE4? There seems to be FRunnable, FAsyncTask, Task graphing and who knows what else.

What I need to achieve is to run a batch of threads first and then run a second batch. The first batch must run first.

Many thanks.

There’s a good overview here:

https://forums.unrealengine.com/development-discussion/engine-source-github/27216-new-core-feature-async-framework-master-branch-and-4-8

If you want to setup a dependency on the 2nd job, you’d just need to save off the GraphEvents when you create the first job, and pass that in as the prerequisites for the 2nd (see TaskGraphInterfaces.h CreateTask)

Thank you! That cleared things up for me.