summaryrefslogtreecommitdiffstats
path: root/src/video_core/query_cache.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-04-16 03:03:30 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-04-22 17:36:21 +0200
commitb3e5f177ba3de381c4ad4e4b20a3bd17e4577e24 (patch)
tree7b940b0a6c83e0d6621963405e60d83e0cb1e836 /src/video_core/query_cache.h
parentAsync GPU: Only do reactive flushing on Extreme Level. (diff)
downloadyuzu-b3e5f177ba3de381c4ad4e4b20a3bd17e4577e24.tar
yuzu-b3e5f177ba3de381c4ad4e4b20a3bd17e4577e24.tar.gz
yuzu-b3e5f177ba3de381c4ad4e4b20a3bd17e4577e24.tar.bz2
yuzu-b3e5f177ba3de381c4ad4e4b20a3bd17e4577e24.tar.lz
yuzu-b3e5f177ba3de381c4ad4e4b20a3bd17e4577e24.tar.xz
yuzu-b3e5f177ba3de381c4ad4e4b20a3bd17e4577e24.tar.zst
yuzu-b3e5f177ba3de381c4ad4e4b20a3bd17e4577e24.zip
Diffstat (limited to 'src/video_core/query_cache.h')
-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 @@
#include "common/assert.h"
#include "core/core.h"
+#include "core/settings.h"
#include "video_core/engines/maxwell_3d.h"
#include "video_core/gpu.h"
#include "video_core/memory_manager.h"
@@ -131,7 +132,9 @@ public:
}
query->BindCounter(Stream(type).Current(), timestamp);
- AsyncFlushQuery(cpu_addr);
+ if (Settings::values.use_asynchronous_gpu_emulation) {
+ AsyncFlushQuery(cpu_addr);
+ }
}
/// Updates counters from GPU state. Expected to be called once per draw, clear or dispatch.