| 634 | } |
| 635 | |
| 636 | static void tickWait() |
| 637 | { |
| 638 | // Idle loop for a 40 FPS |
| 639 | do |
| 640 | { |
| 641 | std::this_thread::sleep_for(std::chrono::milliseconds(1)); |
| 642 | } while (Platform::getTime() - _last_tick_time < Engine::UpdateRateInMs); |
| 643 | } |
| 644 | |
| 645 | bool promptTickLoop(std::function<bool()> tickAction) |
| 646 | { |
no test coverage detected