Skip to content

Commit

Permalink
Merge pull request #6539 from degasus/async
Browse files Browse the repository at this point in the history
VideoCommon: Flush the GPU pipeline on async requests.
  • Loading branch information
degasus committed Jun 21, 2018
2 parents d8ba303 + 3860219 commit bf50348
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Core/VideoCommon/AsyncRequests.cpp
Expand Up @@ -7,6 +7,7 @@
#include "VideoCommon/AsyncRequests.h" #include "VideoCommon/AsyncRequests.h"
#include "VideoCommon/Fifo.h" #include "VideoCommon/Fifo.h"
#include "VideoCommon/RenderBase.h" #include "VideoCommon/RenderBase.h"
#include "VideoCommon/VertexManagerBase.h"
#include "VideoCommon/VideoBackendBase.h" #include "VideoCommon/VideoBackendBase.h"
#include "VideoCommon/VideoCommon.h" #include "VideoCommon/VideoCommon.h"


Expand All @@ -16,6 +17,10 @@ AsyncRequests::AsyncRequests() = default;


void AsyncRequests::PullEventsInternal() void AsyncRequests::PullEventsInternal()
{ {
// This is only called if the queue isn't empty.
// So just flush the pipeline to get accurate results.
g_vertex_manager->Flush();

std::unique_lock<std::mutex> lock(m_mutex); std::unique_lock<std::mutex> lock(m_mutex);
m_empty.Set(); m_empty.Set();


Expand Down

0 comments on commit bf50348

Please sign in to comment.