Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ParallelFor
(
int32 Num, |
General purpose parallel for that uses the taskgraph for unbalanced tasks Offers better work distribution among threads at the cost of a little bit more synchronization. | Async/ParallelFor.h | |
void ParallelFor
(
int32 Num, |
General purpose parallel for that uses the taskgraph | Async/ParallelFor.h | |
void ParallelFor
(
const TCHAR* DebugName, |
General purpose parallel for that uses the taskgraph for unbalanced tasks Offers better work distribution among threads at the cost of a little bit more synchronization. | Async/ParallelFor.h |
ParallelFor(int32, TFunctionRef< void(int32)>, EParallelForFlags)
Description
General purpose parallel for that uses the taskgraph for unbalanced tasks Offers better work distribution among threads at the cost of a little bit more synchronization. This should be used for tasks with highly variable computational time.
| Name | ParallelFor |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/ParallelFor.h |
| Include Path | #include "Async/ParallelFor.h" |
void ParallelFor
(
int32 Num,
TFunctionRef < void> Body,
EParallelForFlags Flags
)
Parameters
| Name | Remarks |
|---|---|
| Num; | number of calls of Body; Body(0), Body(1)....Body(Num - 1) |
| Body; | Function to call from multiple threads |
| Flags; | Used to customize the behavior of the ParallelFor if needed. Notes: Please add stats around to calls to parallel for and within your lambda as appropriate. Do not clog the task graph with long running tasks or tasks that block. |
ParallelFor(int32, TFunctionRef< void(int32)>, bool, bool)
Description
General purpose parallel for that uses the taskgraph
| Name | ParallelFor |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/ParallelFor.h |
| Include Path | #include "Async/ParallelFor.h" |
void ParallelFor
(
int32 Num,
TFunctionRef < void> Body,
bool bForceSingleThread,
bool bPumpRenderingThread
)
Parameters
| Name | Remarks |
|---|---|
| Num; | number of calls of Body; Body(0), Body(1)....Body(Num - 1) |
| Body; | Function to call from multiple threads |
| bForceSingleThread; | Mostly used for testing, if true, run single threaded instead. Notes: Please add stats around to calls to parallel for and within your lambda as appropriate. Do not clog the task graph with long running tasks or tasks that block. |
ParallelFor(const TCHAR *, int32, int32, TFunctionRef< void(int32)>, EParallelForFlags)
Description
General purpose parallel for that uses the taskgraph for unbalanced tasks Offers better work distribution among threads at the cost of a little bit more synchronization. This should be used for tasks with highly variable computational time.
| Name | ParallelFor |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/ParallelFor.h |
| Include Path | #include "Async/ParallelFor.h" |
void ParallelFor
(
const TCHAR * DebugName,
int32 Num,
int32 MinBatchSize,
TFunctionRef < void> Body,
EParallelForFlags Flags
)
Parameters
| Name | Remarks |
|---|---|
| DebugName; | ProfilingScope and Debugname |
| Num; | number of calls of Body; Body(0), Body(1)....Body(Num - 1) |
| MinBatchSize; | Minimum Size of a Batch (will only launch DivUp(Num, MinBatchSize) Workers |
| Body; | Function to call from multiple threads |
| Flags; | Used to customize the behavior of the ParallelFor if needed. Notes: Please add stats around to calls to parallel for and within your lambda as appropriate. Do not clog the task graph with long running tasks or tasks that block. |