Navigation
API > API/Runtime > API/Runtime/Core
Flags controlling the ParallelFor's behavior.
| Name | EParallelForFlags |
| Type | enum |
| Header File | /Engine/Source/Runtime/Core/Public/Async/ParallelFor.h |
| Include Path | #include "Async/ParallelFor.h" |
Syntax
enum EParallelForFlags
{
None,
ForceSingleThread = 1,
Unbalanced = 2,
PumpRenderingThread = 4,
BackgroundPriority = 8,
}
Values
| Name | Remarks |
|---|---|
| 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 |