Clamp Array
PureClampArrayCalculates start/end indices for processing a batch. Useful for spreading work across frames.
Type: Pure (no side effects)
Category: Fortuna|Array & Collection
Keywords: array & collection
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| TotalCount | int | — | TotalCount parameter |
| BatchSize | int | — | BatchSize parameter |
| CurrentBatch | int | — | CurrentBatch parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| StartIndex | int | StartIndex output |
| EndIndex | int | EndIndex output |
| bIsLastBatch | bool | bIsLastBatch output |
Example Use Cases
Example 1
Process 1000 actors in batches of 50 per frame.
Example 2
Load resources in chunks to avoid hitches.