From 05b0973709ad111d50c6209d20639dd2e5d6be44 Mon Sep 17 00:00:00 2001 From: Shingo INADA Date: Mon, 6 Jan 2025 08:41:55 +0900 Subject: [PATCH] restore graphics settings --- core/ui/gui.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/core/ui/gui.cpp b/core/ui/gui.cpp index ff0d7b540..f110306ba 100644 --- a/core/ui/gui.cpp +++ b/core/ui/gui.cpp @@ -2382,6 +2382,32 @@ static void gui_settings_video() ImGui::Unindent(); } #endif + OptionCheckbox("AudioSync", config::LimitFPS, "Limit frame rate by audio. Minimize audio glitch"); + + bool fixedFrequency = config::FixedFrequency != 0; + ImGui::Checkbox("Fixed frequency", &fixedFrequency); + ImGui::SameLine(); + ShowHelpMarker("Limit frame rate by CPU Sleep and Busy-Wait. Minimize input glitch"); + if (fixedFrequency) { + if (!config::FixedFrequency) config::FixedFrequency = 2; + + ImGui::Indent(); + ImGui::Columns(3, "fixed_frequency", false); + OptionRadioButton("Auto", config::FixedFrequency, 1, "Automatically sets frequency by Cable & Broadcast type"); + ImGui::NextColumn(); + OptionRadioButton("59.94 Hz", config::FixedFrequency, 2, "Native NTSC/VGA frequency"); + ImGui::NextColumn(); + OptionRadioButton("60 Hz", config::FixedFrequency, 3, "Approximate NTSC/VGA frequency"); + ImGui::NextColumn(); + OptionRadioButton("50 Hz", config::FixedFrequency, 4, "Native PAL frequency"); + ImGui::NextColumn(); + OptionRadioButton("30 Hz", config::FixedFrequency, 5, "Half NTSC/VGA frequency"); + ImGui::Columns(1, nullptr, false); + ImGui::Unindent(); + } else { + config::FixedFrequency = 0; + } + OptionCheckbox("Show VMU In-game", config::FloatVMUs, "Show the VMU LCD screens while in-game"); OptionCheckbox("Full Framebuffer Emulation", config::EmulateFramebuffer, "Fully accurate VRAM framebuffer emulation. Helps games that directly access the framebuffer for special effects. "