1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-24 23:06:18 +00:00
Lakka-LibreELEC/projects/Samsung/patches/kodi/kodi-0001-LOCAL-WinSystemGbmGLESContext-wait-longer-for-vsync.patch
2022-08-21 12:36:05 +00:00

29 lines
924 B
Diff

From b89fb39cb0e28456016828f37ae4756bf66101b6 Mon Sep 17 00:00:00 2001
From: Christian Hewitt <christianshewitt@gmail.com>
Date: Sun, 23 Jan 2022 07:38:32 +0000
Subject: [PATCH 1/2] LOCAL: WinSystemGbmGLESContext: wait longer for vsync
Waiting longer for vsync improves idle CPU consumption on ARM devices
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
---
xbmc/windowing/gbm/WinSystemGbmGLESContext.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xbmc/windowing/gbm/WinSystemGbmGLESContext.cpp b/xbmc/windowing/gbm/WinSystemGbmGLESContext.cpp
index 0d071c31f1..52ae4c1ef2 100644
--- a/xbmc/windowing/gbm/WinSystemGbmGLESContext.cpp
+++ b/xbmc/windowing/gbm/WinSystemGbmGLESContext.cpp
@@ -149,7 +149,7 @@ void CWinSystemGbmGLESContext::PresentRender(bool rendered, bool videoLayer)
}
else
{
- KODI::TIME::Sleep(10ms);
+ KODI::TIME::Sleep(40ms);
}
}
--
2.17.1