mirror of https://github.com/PCSX2/pcsx2.git
pcsx2: Fix inconsistent framelimiter/vsync interaction
If emulation is paused and resumed, vsync may become enabled even if the frame limiter is currently disabled. This state persists until the settings are changed or the hotkeys are used. Fix the inconsistent framelimiter/vsync behaviour so that vsync isn't enabled whenever the framelimiter is disabled, which matches the behaviour in the rest of the code.
This commit is contained in:
parent
c02a545c7d
commit
056cbbcdcd
|
@ -237,7 +237,7 @@ void Pcsx2Config::GSOptions::LoadSave( IniInterface& ini )
|
|||
|
||||
int Pcsx2Config::GSOptions::GetVsync() const
|
||||
{
|
||||
if (g_LimiterMode == Limit_Turbo)
|
||||
if (g_LimiterMode == Limit_Turbo || !FrameLimitEnable)
|
||||
return 0;
|
||||
|
||||
// D3D only support a boolean state. OpenGL waits a number of vsync
|
||||
|
|
|
@ -512,7 +512,7 @@ void AppCoreThread::ApplySettings( const Pcsx2Config& src )
|
|||
}
|
||||
|
||||
if (m_ExecMode >= ExecMode_Paused)
|
||||
GSsetVsync(EmuConfig.GS.FrameLimitEnable ? EmuConfig.GS.GetVsync() : 0);
|
||||
GSsetVsync(EmuConfig.GS.GetVsync());
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue