MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / TimeSlicer

Class TimeSlicer

Source/Engine/Level/Level.cpp:134–144  ·  view source on GitHub ↗

Small utility for dividing the iterative work over data set that can run in equal slicer limited by time.

Source from the content-addressed store, hash-verified

132
133// Small utility for dividing the iterative work over data set that can run in equal slicer limited by time.
134struct 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.
147class SceneLoader

Callers 1

EndMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected