| 1056 | } |
| 1057 | |
| 1058 | void TimeSlicer::BeginSync(float timeBudget, int32 count, int32 startIndex) |
| 1059 | { |
| 1060 | if (Index == -1) |
| 1061 | { |
| 1062 | // Starting |
| 1063 | Index = startIndex; |
| 1064 | Count = count; |
| 1065 | } |
| 1066 | TimeBudget = (double)timeBudget; |
| 1067 | StartTime = Platform::GetTimeSeconds(); |
| 1068 | } |
| 1069 | |
| 1070 | bool TimeSlicer::StepSync() |
| 1071 | { |