Permalink
Browse files

VideoCommon: Flush the GPU pipeline on async requests.

  • Loading branch information...
degasus committed Mar 26, 2018
1 parent 0dfd0cf commit 38602198993f19871dcde5844633a90eb3560c32
Showing with 5 additions and 0 deletions.
  1. +5 −0 Source/Core/VideoCommon/AsyncRequests.cpp
@@ -7,6 +7,7 @@
#include "VideoCommon/AsyncRequests.h"
#include "VideoCommon/Fifo.h"
#include "VideoCommon/RenderBase.h"
#include "VideoCommon/VertexManagerBase.h"
#include "VideoCommon/VideoBackendBase.h"
#include "VideoCommon/VideoCommon.h"
@@ -16,6 +17,10 @@ AsyncRequests::AsyncRequests() = default;
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);
m_empty.Set();

0 comments on commit 3860219

Please sign in to comment.