possibly fixing a bug where frame advance can run out of control sometimes, and disabling a throttle setting that didn't seem to add much
This commit is contained in:
parent
b117ca793d
commit
b8625a6f20
|
@ -1630,6 +1630,12 @@ static void StepRunLoop_Throttle(bool allowSleep = true, int forceFrameSkip = -1
|
|||
SPU_Pause(1);
|
||||
}
|
||||
ServiceDisplayThreadInvocations();
|
||||
|
||||
if(execute && emu_paused && !frameAdvance)
|
||||
{
|
||||
// safety net against running out of control in case this ever happens.
|
||||
Unpause(); Pause();
|
||||
}
|
||||
}
|
||||
|
||||
DWORD WINAPI run()
|
||||
|
@ -3240,6 +3246,7 @@ int HandleKeyMessage(WPARAM wParam, LPARAM lParam, int modifiers)
|
|||
void Unpause()
|
||||
{
|
||||
lastPauseFromLostFocus = FALSE;
|
||||
if (!execute && !emu_paused) NDS_Pause(false), emu_paused=true;
|
||||
if (emu_paused) NDS_UnPause();
|
||||
emu_paused = 0;
|
||||
}
|
||||
|
@ -3247,6 +3254,7 @@ void Unpause()
|
|||
void Pause()
|
||||
{
|
||||
lastPauseFromLostFocus = FALSE;
|
||||
if (execute && emu_paused) NDS_UnPause(false), emu_paused=false;
|
||||
if (!emu_paused) NDS_Pause();
|
||||
emu_paused = 1;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ static u64 desiredFpsScalers [] = {
|
|||
1024,
|
||||
512,
|
||||
256, // 100%
|
||||
224,
|
||||
//224,
|
||||
192,
|
||||
128, // 50%
|
||||
96,
|
||||
|
|
Loading…
Reference in New Issue