mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-01 00:15:14 +01:00
Snes9x - Add option for overclock Super FX at 20 MHz and update selectable options (Taken from niuus' Snes9x RX) (#1003)
* Add option for overclock Super FX at 20 MHz and update selectable options (niuus) Add an option for overclock Super FX 1 / GSU-1 (MARIO Chip) games to 20 MHz, taken from @niuus' fork of Snes9xGX, called Snes9x RX. Overclocking to 40 MHz/60 MHz are unstable for these games that used the SFX GSU-1 chip, and makes it unplayable due to too fast speed, so this modification adds this 20MHz overclock option. * Add option for overclock Super FX at 20 MHz (niuus) Add an option for overclock Super FX 1 / GSU-1 (MARIO Chip) games to 20 MHz, taken from @niuus' fork of Snes9xGX, called Snes9x RX. Overclocking to 40 MHz/60 MHz are unstable for these games that used the SFX GSU-1 chip, and makes it unplayable due to too fast speed, so this modification adds this 20MHz overclock option. * Forgot to update option order for avoid conflict between menus
This commit is contained in:
parent
e1ca95b38b
commit
20ace6b0ed
@ -3484,14 +3484,15 @@ static int MenuSettingsVideo()
|
|||||||
break;
|
break;
|
||||||
case 9:
|
case 9:
|
||||||
GCSettings.sfxOverclock++;
|
GCSettings.sfxOverclock++;
|
||||||
if (GCSettings.sfxOverclock > 2) {
|
if (GCSettings.sfxOverclock > 3) {
|
||||||
GCSettings.sfxOverclock = 0;
|
GCSettings.sfxOverclock = 0;
|
||||||
}
|
}
|
||||||
switch(GCSettings.sfxOverclock)
|
switch(GCSettings.sfxOverclock)
|
||||||
{
|
{
|
||||||
case 0: Settings.SuperFXSpeedPerLine = 5823405; break;
|
case 0: Settings.SuperFXSpeedPerLine = 5823405; break;
|
||||||
case 1: Settings.SuperFXSpeedPerLine = 0.417 * 40.5e6; break;
|
case 1: Settings.SuperFXSpeedPerLine = 0.417 * 20.5e6; break;
|
||||||
case 2: Settings.SuperFXSpeedPerLine = 0.417 * 60.5e6; break;
|
case 2: Settings.SuperFXSpeedPerLine = 0.417 * 40.5e6; break;
|
||||||
|
case 3: Settings.SuperFXSpeedPerLine = 0.417 * 60.5e6; break;
|
||||||
}
|
}
|
||||||
S9xResetSuperFX();
|
S9xResetSuperFX();
|
||||||
S9xReset();
|
S9xReset();
|
||||||
@ -3544,8 +3545,10 @@ static int MenuSettingsVideo()
|
|||||||
case 0:
|
case 0:
|
||||||
sprintf (options.value[9], "Default"); break;
|
sprintf (options.value[9], "Default"); break;
|
||||||
case 1:
|
case 1:
|
||||||
sprintf (options.value[9], "40 MHz"); break;
|
sprintf (options.value[9], "20 MHz"); break;
|
||||||
case 2:
|
case 2:
|
||||||
|
sprintf (options.value[9], "40 MHz"); break;
|
||||||
|
case 3:
|
||||||
sprintf (options.value[9], "60 MHz"); break;
|
sprintf (options.value[9], "60 MHz"); break;
|
||||||
}
|
}
|
||||||
optionBrowser.TriggerUpdate();
|
optionBrowser.TriggerUpdate();
|
||||||
|
@ -482,8 +482,9 @@ int main(int argc, char *argv[])
|
|||||||
switch (GCSettings.sfxOverclock)
|
switch (GCSettings.sfxOverclock)
|
||||||
{
|
{
|
||||||
case 0: Settings.SuperFXSpeedPerLine = 5823405; break;
|
case 0: Settings.SuperFXSpeedPerLine = 5823405; break;
|
||||||
case 1: Settings.SuperFXSpeedPerLine = 0.417 * 40.5e6; break;
|
case 1: Settings.SuperFXSpeedPerLine = 0.417 * 20.5e6; break;
|
||||||
case 2: Settings.SuperFXSpeedPerLine = 0.417 * 60.5e6; break;
|
case 2: Settings.SuperFXSpeedPerLine = 0.417 * 40.5e6; break;
|
||||||
|
case 3: Settings.SuperFXSpeedPerLine = 0.417 * 60.5e6; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GCSettings.sfxOverclock > 0)
|
if (GCSettings.sfxOverclock > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user