aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkszaq <kszaquitto@gmail.com>2017-04-15 21:40:54 +0200
committerkszaq <kszaquitto@gmail.com>2019-04-07 21:05:23 +0200
commitc9a81cb2f5fb10e26a8f6173563c139c69537aa1 (patch)
treedb48b2bc2c6f2f97f6791fd84ec601340aec411f
parentc63342329f31d0071a8e1d8d1a0d8c0cbad1e513 (diff)
VideoSyncAML: Increase rendering thread prioroty
-rw-r--r--xbmc/windowing/amlogic/VideoSyncAML.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/windowing/amlogic/VideoSyncAML.cpp b/xbmc/windowing/amlogic/VideoSyncAML.cpp
index e44aa91866..d2a9f98495 100644
--- a/xbmc/windowing/amlogic/VideoSyncAML.cpp
+++ b/xbmc/windowing/amlogic/VideoSyncAML.cpp
@@ -49,6 +49,9 @@ void CVideoSyncAML::Run(CEvent& stopEvent)
unsigned int waittime (3000 / m_fps);
uint64_t numVBlanks (0);
+ /* This shouldn't be very busy and timing is important so increase priority */
+ CThread::GetCurrentThread()->SetPriority(CThread::GetCurrentThread()->GetPriority() + 1);
+
while (!stopEvent.Signaled() && !m_abort)
{
int countVSyncs(1);