summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2022-09-09 04:46:58 +0200
committerGitHub <noreply@github.com>2022-09-09 04:46:58 +0200
commit0cef3b47f36e8613f7fdbda8fd712e0784026ac2 (patch)
treeede9615eebf3dcba0d15429b1c0938e85b222b35 /src/video_core
parentMerge pull request #8859 from CaptV0rt3x/patch-1 (diff)
parentvideo_core: add option for pessimistic flushing (diff)
downloadyuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar
yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar.gz
yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar.bz2
yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar.lz
yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar.xz
yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar.zst
yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/buffer_cache/buffer_base.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/buffer_base.h b/src/video_core/buffer_cache/buffer_base.h
index 0b2bc67b1..f9a6472cf 100644
--- a/src/video_core/buffer_cache/buffer_base.h
+++ b/src/video_core/buffer_cache/buffer_base.h
@@ -12,6 +12,7 @@
#include "common/common_funcs.h"
#include "common/common_types.h"
#include "common/div_ceil.h"
+#include "common/settings.h"
#include "core/memory.h"
namespace VideoCommon {
@@ -219,7 +220,9 @@ public:
NotifyRasterizer<false>(word_index, untracked_words[word_index], cached_bits);
untracked_words[word_index] |= cached_bits;
cpu_words[word_index] |= cached_bits;
- cached_words[word_index] = 0;
+ if (!Settings::values.use_pessimistic_flushes) {
+ cached_words[word_index] = 0;
+ }
}
}