MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / tickWait

Function tickWait

src/OpenLoco/src/OpenLoco.cpp:636–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

promptTickLoopFunction · 0.85

Calls 1

getTimeFunction · 0.50

Tested by

no test coverage detected