EParallelForFlags

Flags controlling the ParallelFor's behavior.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Async/ParallelFor.h

Include

#include "Async/ParallelFor.h"

Syntax

enum EParallelForFlags
{
    None,
    ForceSingleThread      = 1,
    Unbalanced             = 2,
    PumpRenderingThread    = 4,
    BackgroundPriority     = 8,
}

Values

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

Remarks

Flags controlling the ParallelFor's behavior.