Small utility for dividing the iterative work over data set that can run in equal slicer limited by time.
| 132 | |
| 133 | // Small utility for dividing the iterative work over data set that can run in equal slicer limited by time. |
| 134 | struct TimeSlicer |
| 135 | { |
| 136 | int32 Index = -1; |
| 137 | int32 Count = 0; |
| 138 | double TimeBudget; |
| 139 | double StartTime; |
| 140 | |
| 141 | void BeginSync(float timeBudget, int32 count, int32 startIndex = 0); |
| 142 | bool StepSync(); |
| 143 | SceneResult End(); |
| 144 | }; |
| 145 | |
| 146 | // Async map loading utility for state tracking and synchronization of various load stages. |
| 147 | class SceneLoader |