MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / SubLoopScopes

Function SubLoopScopes

Source/PCGExtendedToolkit/Private/PCGExMT.cpp:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 int32 SubLoopScopes(TArray<FScope>& OutSubRanges, const int32 MaxItems, const int32 RangeSize)
52 {
53 OutSubRanges.Empty();
54 OutSubRanges.Reserve((MaxItems + RangeSize - 1) / RangeSize);
55
56 for (int32 CurrentCount = 0; CurrentCount < MaxItems; CurrentCount += RangeSize)
57 {
58 OutSubRanges.Emplace(CurrentCount, FMath::Min(RangeSize, MaxItems - CurrentCount), OutSubRanges.Num());
59 }
60
61 return OutSubRanges.Num();
62 }
63
64 FAsyncHandle::~FAsyncHandle()
65 {

Callers 3

StartIterationsMethod · 0.85
StartSubLoopsMethod · 0.85
StartRangesFunction · 0.85

Calls 3

MinFunction · 0.85
NumMethod · 0.80
ReserveMethod · 0.45

Tested by

no test coverage detected