Haiku graphics mode scheduler low latency rather power saving for

insuring best performance.
This commit is contained in:
David Carlier 2021-04-01 17:10:08 +00:00
parent a738fa66e3
commit 087ad350d7

View File

@ -166,6 +166,10 @@
#include <jni.h>
#endif
#ifdef __HAIKU__
#include <kernel/scheduler.h>
#endif
#ifdef __SWITCH__
extern "C" {
#include <sys/iosupport.h>
@ -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)