MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / MainLoop

Method MainLoop

src/video/win32_v.cpp:1009–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007}
1008
1009void VideoDriver_Win32Base::MainLoop()
1010{
1011 this->StartGameThread();
1012
1013 for (;;) {
1014 if (_exit_game) break;
1015
1016 this->Tick();
1017 this->SleepTillNextTick();
1018 }
1019
1020 this->StopGameThread();
1021}
1022
1023void VideoDriver_Win32Base::ClientSizeChanged(int w, int h, bool force)
1024{

Callers

nothing calls this directly

Calls 4

StartGameThreadMethod · 0.80
SleepTillNextTickMethod · 0.80
StopGameThreadMethod · 0.80
TickMethod · 0.45

Tested by

no test coverage detected