diff --git a/src/main.cpp b/src/main.cpp index 32e2d346d..3488aae1b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -166,6 +166,10 @@ #include #endif +#ifdef __HAIKU__ +#include +#endif + #ifdef __SWITCH__ extern "C" { #include @@ -2348,6 +2352,9 @@ int main(int argc, char *argv[]) #ifndef SERVER_ONLY if (!GUIEngine::isNoGraphics()) { +#ifdef __HAIKU__ + set_scheduler_mode(SCHEDULER_MODE_LOW_LATENCY); +#endif // Some Android devices have only 320x240 and height >= 480 is bare // minimum to make the GUI working as expected. if (irr_driver->getActualScreenSize().Height < 480)