From a1064f33b3fef3f8f10ae06b67b2da44be60c22a Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 26 Oct 2020 22:15:38 +1000 Subject: [PATCH] libretro: Add option to disable fastmem --- .../libretro_host_interface.cpp | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/duckstation-libretro/libretro_host_interface.cpp b/src/duckstation-libretro/libretro_host_interface.cpp index 5d956de70..ce35ed8d5 100644 --- a/src/duckstation-libretro/libretro_host_interface.cpp +++ b/src/duckstation-libretro/libretro_host_interface.cpp @@ -448,7 +448,7 @@ void LibretroHostInterface::OnSystemDestroyed() m_using_hardware_renderer = false; } -static std::array s_option_definitions = {{ +static std::array s_option_definitions = {{ {"duckstation_Console.Region", "Console Region", "Determines which region/hardware to emulate. Auto-Detect will use the region of the disc inserted.", @@ -513,12 +513,6 @@ static std::array s_option_definitions = {{ {"300", "300%"}, {"350", "350%"}, {"400", "400%"}, {"450", "450%"}, {"500", "500%"}, {"600", "600%"}, {"700", "700%"}, {"800", "800%"}, {"900", "900%"}, {"1000", "1000%"}}, "100"}, - {"duckstation_CPU.RecompilerICache", - "CPU Recompiler ICache", - "Determines whether the CPU's instruction cache is simulated in the recompiler. Improves accuracy at a small cost " - "to performance. If games are running too fast, try enabling this option.", - {{"true", "Enabled"}, {"false", "Disabled"}}, - "false"}, {"duckstation_GPU.Renderer", "GPU Renderer", "Which renderer to use to emulate the GPU", @@ -712,6 +706,18 @@ static std::array s_option_definitions = {{ {"Debug", "Debug"}, {"Trace", "Trace"}}, "Info"}, + {"duckstation_CPU.RecompilerICache", + "CPU Recompiler ICache", + "Determines whether the CPU's instruction cache is simulated in the recompiler. Improves accuracy at a small cost " + "to performance. If games are running too fast, try enabling this option.", + {{"true", "Enabled"}, {"false", "Disabled"}}, + "false"}, + {"duckstation_CPU.Fastmem", + "CPU Recompiler Fast Memory Access", + "Uses page faults to determine hardware memory accesses at runtime. Can provide a significant performance " + "improvement in some games, but make the core more difficult to debug.", + {{"true", "Enabled"}, {"false", "Disabled"}}, + "true"}, {}, }};