aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfritsch <peter.fruehberger@gmail.com>2015-04-10 20:52:31 +0200
committerfritsch <peter.fruehberger@gmail.com>2015-04-10 21:02:20 +0200
commit92bae28e6e56c1790233a66e828dc99f4d033247 (patch)
treefc9b94b4dff95df415dc10283b6dc7386f37e086
parent84de872e56734a9a2f487c53e636ab2ac8388901 (diff)
Only use videoplayer.limitguiupdate on Pi and IMX
-rw-r--r--xbmc/Application.cpp6
1 files changed, 6 insertions, 0 deletions
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)