mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 01:59:34 +01:00
Config: Store the alternative speeds in percent
The settings screen showed them in percent but they were stored as frame rates out of 60, so the screen kept converted copies and wrote them back. Now they're stored in percent under new ini keys (AltSpeedPercent, AltSpeedPercent2, AnalogAltSpeedPercent), migrated from the old frame rate keys like the audio volumes were, and converted to a frame rate where the timing needs one. Low percentages no longer round to a 0 fps limit, which meant unlimited. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
ff3d184b43
commit
71b38e58e6
6 files changed
+54
-34
No files matched your search
@@ -424,9 +424,9 @@ static int FrameTimingLimit() {
|
||||
return 0;
|
||||
// Can't slow down in hardcore mode.
|
||||
if (PSP_CoreParameter().fpsLimit == FPSLimit::CUSTOM1)
|
||||
return fixRate(g_Config.iFpsLimit1);
|
||||
return fixRate(AltSpeedPercentToFps(g_Config.iAltSpeedPercent1));
|
||||
if (PSP_CoreParameter().fpsLimit == FPSLimit::CUSTOM2)
|
||||
return fixRate(g_Config.iFpsLimit2);
|
||||
return fixRate(AltSpeedPercentToFps(g_Config.iAltSpeedPercent2));
|
||||
if (PSP_CoreParameter().fpsLimit == FPSLimit::ANALOG)
|
||||
return fixRate(PSP_CoreParameter().analogFpsLimit);
|
||||
if (PSP_CoreParameter().fpsLimit == FPSLimit::DEBUGGER)
|
||||
|
||||
Reference in new issue
Block a user