Skip to content

Commit

Permalink
restore graphics settings
Browse files Browse the repository at this point in the history
  • Loading branch information
inada-s committed Jan 5, 2025
1 parent acf6806 commit 05b0973
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions core/ui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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. "
Expand Down

0 comments on commit 05b0973

Please sign in to comment.