Haiku graphics mode scheduler low latency rather power saving for
insuring best performance.
This commit is contained in:
parent
a738fa66e3
commit
087ad350d7
@ -166,6 +166,10 @@
|
|||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
#include <kernel/scheduler.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __SWITCH__
|
#ifdef __SWITCH__
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <sys/iosupport.h>
|
#include <sys/iosupport.h>
|
||||||
@ -2348,6 +2352,9 @@ int main(int argc, char *argv[])
|
|||||||
#ifndef SERVER_ONLY
|
#ifndef SERVER_ONLY
|
||||||
if (!GUIEngine::isNoGraphics())
|
if (!GUIEngine::isNoGraphics())
|
||||||
{
|
{
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
set_scheduler_mode(SCHEDULER_MODE_LOW_LATENCY);
|
||||||
|
#endif
|
||||||
// Some Android devices have only 320x240 and height >= 480 is bare
|
// Some Android devices have only 320x240 and height >= 480 is bare
|
||||||
// minimum to make the GUI working as expected.
|
// minimum to make the GUI working as expected.
|
||||||
if (irr_driver->getActualScreenSize().Height < 480)
|
if (irr_driver->getActualScreenSize().Height < 480)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user