From 92bae28e6e56c1790233a66e828dc99f4d033247 Mon Sep 17 00:00:00 2001 From: fritsch Date: Fri, 10 Apr 2015 20:52:31 +0200 Subject: Only use videoplayer.limitguiupdate on Pi and IMX --- xbmc/Application.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp index d96ca72c77..51fdf849df 100644 --- a/xbmc/Application.cpp +++ b/xbmc/Application.cpp @@ -2482,8 +2482,14 @@ void CApplication::FrameMove(bool processEvents, bool processGUI) { m_skipGuiRender = false; int fps = 0; + +#if defined(TARGET_RASPBERRY_PI) || defined(HAS_IMXVPU) + // This code reduces rendering fps of the GUI layer when playing videos in fullscreen mode + // it makes only sense on architectures with multiple layers if (g_graphicsContext.IsFullScreenVideo() && !m_pPlayer->IsPausedPlayback()) fps = CSettings::Get().GetInt("videoplayer.limitguiupdate"); +#endif + unsigned int now = XbmcThreads::SystemClockMillis(); unsigned int frameTime = now - m_lastRenderTime; if (fps > 0 && frameTime * fps < 1000) -- cgit v1.2.3