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

Method MainLoop

src/video/allegro_v.cpp:481–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481void VideoDriver_Allegro::MainLoop()
482{
483 this->StartGameThread();
484
485 for (;;) {
486 if (_exit_game) break;
487
488 this->Tick();
489 this->SleepTillNextTick();
490 }
491
492 this->StopGameThread();
493}
494
495bool VideoDriver_Allegro::ChangeResolution(int w, int h)
496{

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