[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - avmedia/source

Michael Meeks michael.meeks at collabora.com
Tue Sep 8 02:20:48 PDT 2015


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

New commits:
commit eb570808aae8080e2dbb925db6b15cc257b2b9e5
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
    Reviewed-on: https://gerrit.libreoffice.org/18384
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/avmedia/source/opengl/oglplayer.cxx b/avmedia/source/opengl/oglplayer.cxx
index 75caec6..f1a3ada 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