Merge pull request #8819 from liamwhite/cash-money

video_core: add option for pessimistic flushing
This commit is contained in:
lat9nq 2022-09-08 22:46:58 -04:00 committed by GitHub
commit 0cef3b47f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 32 additions and 1 deletions

View file

@ -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;
}
}
}