diff options
| author | 2022-09-08 22:46:58 -0400 | |
|---|---|---|
| committer | 2022-09-08 22:46:58 -0400 | |
| commit | 0cef3b47f36e8613f7fdbda8fd712e0784026ac2 (patch) | |
| tree | ede9615eebf3dcba0d15429b1c0938e85b222b35 /src/video_core | |
| parent | Merge pull request #8859 from CaptV0rt3x/patch-1 (diff) | |
| parent | video_core: add option for pessimistic flushing (diff) | |
| download | yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar.gz yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar.xz yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.zip | |
Merge pull request #8819 from liamwhite/cash-money
video_core: add option for pessimistic flushing
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/buffer_cache/buffer_base.h | 5 |
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 @@ | |||
| 12 | #include "common/common_funcs.h" | 12 | #include "common/common_funcs.h" |
| 13 | #include "common/common_types.h" | 13 | #include "common/common_types.h" |
| 14 | #include "common/div_ceil.h" | 14 | #include "common/div_ceil.h" |
| 15 | #include "common/settings.h" | ||
| 15 | #include "core/memory.h" | 16 | #include "core/memory.h" |
| 16 | 17 | ||
| 17 | namespace VideoCommon { | 18 | namespace VideoCommon { |
| @@ -219,7 +220,9 @@ public: | |||
| 219 | NotifyRasterizer<false>(word_index, untracked_words[word_index], cached_bits); | 220 | NotifyRasterizer<false>(word_index, untracked_words[word_index], cached_bits); |
| 220 | untracked_words[word_index] |= cached_bits; | 221 | untracked_words[word_index] |= cached_bits; |
| 221 | cpu_words[word_index] |= cached_bits; | 222 | cpu_words[word_index] |= cached_bits; |
| 222 | cached_words[word_index] = 0; | 223 | if (!Settings::values.use_pessimistic_flushes) { |
| 224 | cached_words[word_index] = 0; | ||
| 225 | } | ||
| 223 | } | 226 | } |
| 224 | } | 227 | } |
| 225 | 228 | ||