From 13903c2abdf2f6313a5fec4fef23a7ad6269ca81 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin <stenzek@gmail.com> Date: Sun, 19 Apr 2020 16:58:13 +1000 Subject: [PATCH] SDL: Add advanced options for tweaking GPU FIFO/runahead These values are not saved. --- src/duckstation-sdl/sdl_host_interface.cpp | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/duckstation-sdl/sdl_host_interface.cpp b/src/duckstation-sdl/sdl_host_interface.cpp index c0d205a61..0494f2a26 100644 --- a/src/duckstation-sdl/sdl_host_interface.cpp +++ b/src/duckstation-sdl/sdl_host_interface.cpp @@ -1182,6 +1182,29 @@ void SDLHostInterface::DrawSettingsWindow() settings_changed |= ImGui::Checkbox("Force NTSC Timings", &m_settings_copy.gpu_force_ntsc_timings); } + if (DrawSettingsSectionHeader("Advanced")) + { + ImGui::Text("FIFO Size:"); + ImGui::SameLine(indent); + + int fifo_size = static_cast<int>(m_settings_copy.gpu_fifo_size); + if (ImGui::SliderInt("##fifo_size", &fifo_size, 16, GPU::MAX_FIFO_SIZE)) + { + m_settings_copy.gpu_fifo_size = fifo_size; + settings_changed = true; + } + + ImGui::Text("Max Run-Ahead:"); + ImGui::SameLine(indent); + + int max_run_ahead = static_cast<int>(m_settings_copy.gpu_max_run_ahead); + if (ImGui::SliderInt("##max_run_ahead", &max_run_ahead, 0, 1000)) + { + m_settings_copy.gpu_max_run_ahead = max_run_ahead; + settings_changed = true; + } + } + ImGui::EndTabItem(); }