[Libreoffice-commits] core.git: avmedia/source

Michael Meeks michael.meeks at collabora.com
Mon Sep 7 09:25:03 PDT 2015


 avmedia/source/opengl/oglplayer.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 1973d74b6d4a6b22c59299099bc0c0d19b64d4e5
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Mon Sep 7 17:31:03 2015 +0100

    tdf#93996 - throttle gltf rendering to let UI re-rendering get in.
    
    Change-Id: I4a61595294c24a609a5952ce72f9f88524969784

diff --git a/avmedia/source/opengl/oglplayer.cxx b/avmedia/source/opengl/oglplayer.cxx
index 446723f..a8a9f7d 100644
--- a/avmedia/source/opengl/oglplayer.cxx
+++ b/avmedia/source/opengl/oglplayer.cxx
@@ -121,8 +121,10 @@ bool OGLPlayer::create( const OUString& rURL )
     }
 
     // Set timer
-    m_aTimer.SetTimeout(1);
+    m_aTimer.SetTimeout(8); // is 125fps enough for anyone ?
+    m_aTimer.SetPriority(SchedulerPriority::LOW);
     m_aTimer.SetTimeoutHdl(LINK(this,OGLPlayer,TimerHandler));
+
     return true;
 }
 


More information about the Libreoffice-commits mailing list