summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-04-15 21:03:30 -0400
committerGravatar Fernando Sahmkow2020-04-22 11:36:21 -0400
commitb3e5f177ba3de381c4ad4e4b20a3bd17e4577e24 (patch)
tree7b940b0a6c83e0d6621963405e60d83e0cb1e836 /src
parentAsync GPU: Only do reactive flushing on Extreme Level. (diff)
downloadyuzu-b3e5f177ba3de381c4ad4e4b20a3bd17e4577e24.tar.gz
yuzu-b3e5f177ba3de381c4ad4e4b20a3bd17e4577e24.tar.xz
yuzu-b3e5f177ba3de381c4ad4e4b20a3bd17e4577e24.zip
QueryCache: Only do async flushes on async gpu.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/query_cache.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/query_cache.h b/src/video_core/query_cache.h
index 1b1c23995..98d956b68 100644
--- a/src/video_core/query_cache.h
+++ b/src/video_core/query_cache.h
@@ -17,6 +17,7 @@
17 17
18#include "common/assert.h" 18#include "common/assert.h"
19#include "core/core.h" 19#include "core/core.h"
20#include "core/settings.h"
20#include "video_core/engines/maxwell_3d.h" 21#include "video_core/engines/maxwell_3d.h"
21#include "video_core/gpu.h" 22#include "video_core/gpu.h"
22#include "video_core/memory_manager.h" 23#include "video_core/memory_manager.h"
@@ -131,7 +132,9 @@ public:
131 } 132 }
132 133
133 query->BindCounter(Stream(type).Current(), timestamp); 134 query->BindCounter(Stream(type).Current(), timestamp);
134 AsyncFlushQuery(cpu_addr); 135 if (Settings::values.use_asynchronous_gpu_emulation) {
136 AsyncFlushQuery(cpu_addr);
137 }
135 } 138 }
136 139
137 /// Updates counters from GPU state. Expected to be called once per draw, clear or dispatch. 140 /// Updates counters from GPU state. Expected to be called once per draw, clear or dispatch.