Settings: add option to enable / disable reactive flushing
This commit is contained in:
parent
0f4f18265f
commit
92da86290c
11 changed files with 38 additions and 5 deletions
|
@ -465,7 +465,8 @@ struct Memory::Impl {
|
|||
}
|
||||
|
||||
if (Settings::IsFastmemEnabled()) {
|
||||
system.DeviceMemory().buffer.Protect(vaddr, size, !cached, !cached);
|
||||
const bool is_read_enable = !Settings::values.use_reactive_flushing.GetValue() || !cached;
|
||||
system.DeviceMemory().buffer.Protect(vaddr, size, is_read_enable, !cached);
|
||||
}
|
||||
|
||||
// Iterate over a contiguous CPU address space, which corresponds to the specified GPU
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue