From 087ad350d7364b7239c44f86e5e0690fc939c6cc Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 1 Apr 2021 17:10:08 +0000 Subject: [PATCH] Haiku graphics mode scheduler low latency rather power saving for insuring best performance. --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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)