From a05450d6589f40b2e39bdfc6501cdeff160af24a Mon Sep 17 00:00:00 2001 From: retrotalker <42415066+retrotalker@users.noreply.github.com> Date: Wed, 15 Aug 2018 12:15:24 -0500 Subject: [PATCH] overclocking option light --- libretro/libretro.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libretro/libretro.cpp b/libretro/libretro.cpp index 7f4b0171..5c0daacc 100644 --- a/libretro/libretro.cpp +++ b/libretro/libretro.cpp @@ -168,7 +168,7 @@ void retro_set_environment(retro_environment_t cb) // Adding more variables and rearranging them is safe. { "snes9x_up_down_allowed", "Allow Opposing Directions; disabled|enabled" }, { "snes9x_overclock_superfx", "SuperFX Overclocking; 100%|150%|200%|250%|300%|350%|400%|450%|500%|50%" }, - { "snes9x_overclock_cycles", "Reduce Slowdown (Hack, Unsafe); disabled|compatible|max" }, + { "snes9x_overclock_cycles", "Reduce Slowdown (Hack, Unsafe); disabled|light|compatible|max" }, { "snes9x_reduce_sprite_flicker", "Reduce Flickering (Hack, Unsafe); disabled|enabled" }, { "snes9x_randomize_memory", "Randomize Memory (Unsafe); disabled|enabled" }, { "snes9x_hires_blend", "Hires Blending; disabled|merge|blur" }, @@ -352,6 +352,12 @@ static void update_variables(void) Settings.OneSlowClockCycle = 5; Settings.TwoClockCycles = 6; } + else if (strcmp(var.value, "light") == 0) + { + Settings.OneClockCycle = 6; + Settings.OneSlowClockCycle = 6; + Settings.TwoClockCycles = 12; + } } Settings.MaxSpriteTilesPerLine = 34;