diff options
| author | 2023-05-04 02:34:49 +0200 | |
|---|---|---|
| committer | 2023-05-07 23:46:12 +0200 | |
| commit | 92da86290c5ea657ae918bfe36071bdf7ac15075 (patch) | |
| tree | 54579c5be80dde28aabe68cd2467281036ef807a /src/core | |
| parent | Texture cache: sync the first flush. (diff) | |
| download | yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar.gz yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar.xz yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.zip | |
Settings: add option to enable / disable reactive flushing
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/memory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 7b79cb8bc..549b64ac4 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp | |||
| @@ -465,7 +465,8 @@ struct Memory::Impl { | |||
| 465 | } | 465 | } |
| 466 | 466 | ||
| 467 | if (Settings::IsFastmemEnabled()) { | 467 | if (Settings::IsFastmemEnabled()) { |
| 468 | system.DeviceMemory().buffer.Protect(vaddr, size, !cached, !cached); | 468 | const bool is_read_enable = !Settings::values.use_reactive_flushing.GetValue() || !cached; |
| 469 | system.DeviceMemory().buffer.Protect(vaddr, size, is_read_enable, !cached); | ||
| 469 | } | 470 | } |
| 470 | 471 | ||
| 471 | // Iterate over a contiguous CPU address space, which corresponds to the specified GPU | 472 | // Iterate over a contiguous CPU address space, which corresponds to the specified GPU |