Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Async/ParallelFor.h |
Include |
#include "Async/ParallelFor.h" |
enum EParallelForFlags
{
None,
ForceSingleThread = 1,
Unbalanced = 2,
PumpRenderingThread = 4,
BackgroundPriority = 8,
}
Name |
Description |
---|---|
None |
Default behavior. |
ForceSingleThread |
Mostly used for testing, when used, ParallelFor will run single threaded instead. |
Unbalanced |
Offers better work distribution among threads at the cost of a little bit more synchronization. |
PumpRenderingThread |
If running on the rendering thread, make sure the ProcessThread is called when idle |
BackgroundPriority |
Tasks should run on background priority threads |
Flags controlling the ParallelFor's behavior.