]> git.vomp.tv Git - vompclient.git/commitdiff
Save some CPU usage in OSD loop
authorChris Tallon <chris@vomp.tv>
Wed, 4 Oct 2017 13:03:23 +0000 (13:03 +0000)
committerChris Tallon <chris@vomp.tv>
Wed, 4 Oct 2017 13:03:23 +0000 (13:03 +0000)
osdopenvg.cc

index c41db1759b8c19a50bdd5b30a69bb3591426667e..631fa3ba719ee8ccc6af0e11cb7a20ec92d26c57 100644 (file)
@@ -581,6 +581,11 @@ void OsdOpenVG::threadMethod()
                                InternalRendering();
                                lastrendertime = getTimeMS();
 
+                               ts = 10;
+                       }
+                       else {
+                               ts = time1 - lastrendertime;
+
                        }
                        if (processTasks()) ts=0;
                }