From 279c657cda7772a39f318b5df68fb279bb0400b4 Mon Sep 17 00:00:00 2001 From: degasus Date: Thu, 5 Mar 2015 17:12:24 +0100 Subject: Fifo: Replace busy loop with condition variable --- Source/Core/VideoCommon/AsyncRequests.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/Core/VideoCommon/AsyncRequests.cpp') diff --git a/Source/Core/VideoCommon/AsyncRequests.cpp b/Source/Core/VideoCommon/AsyncRequests.cpp index a6cc5a4b9c..d2945a3dbc 100644 --- a/Source/Core/VideoCommon/AsyncRequests.cpp +++ b/Source/Core/VideoCommon/AsyncRequests.cpp @@ -1,4 +1,5 @@ #include "VideoCommon/AsyncRequests.h" +#include "VideoCommon/Fifo.h" #include "VideoCommon/RenderBase.h" AsyncRequests AsyncRequests::s_singleton; @@ -49,6 +50,7 @@ void AsyncRequests::PushEvent(const AsyncRequests::Event& event, bool blocking) m_queue.push(event); + RunGpu(); if (blocking) { m_cond.wait(lock, [this]{return m_queue.empty();}); -- cgit v1.2.3