From 5dc70eb51b5ab8bbde69504ecf3e44cbd3af1fd0 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Wed, 4 Oct 2017 13:03:23 +0000 Subject: [PATCH] Save some CPU usage in OSD loop --- osdopenvg.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osdopenvg.cc b/osdopenvg.cc index c41db17..631fa3b 100644 --- a/osdopenvg.cc +++ b/osdopenvg.cc @@ -581,6 +581,11 @@ void OsdOpenVG::threadMethod() InternalRendering(); lastrendertime = getTimeMS(); + ts = 10; + } + else { + ts = time1 - lastrendertime; + } if (processTasks()) ts=0; } -- 2.39.5