Settings: add option to enable / disable reactive flushing

This commit is contained in:
Fernando Sahmkow 2023-05-04 02:34:49 +02:00
parent 0f4f18265f
commit 92da86290c
11 changed files with 38 additions and 5 deletions

View file

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