mirror of https://github.com/PCSX2/pcsx2.git
Wx: Fix live vsync changes not applying
This commit is contained in:
parent
0ca3167595
commit
7e8c6fcc9d
|
@ -322,7 +322,6 @@ bool Pcsx2Config::GSOptions::operator==(const GSOptions& right) const
|
||||||
|
|
||||||
OpEqu(FrameSkipEnable) &&
|
OpEqu(FrameSkipEnable) &&
|
||||||
OpEqu(FrameLimitEnable) &&
|
OpEqu(FrameLimitEnable) &&
|
||||||
OpEqu(VsyncEnable) &&
|
|
||||||
|
|
||||||
OpEqu(FramesToDraw) &&
|
OpEqu(FramesToDraw) &&
|
||||||
OpEqu(FramesToSkip) &&
|
OpEqu(FramesToSkip) &&
|
||||||
|
@ -343,6 +342,8 @@ bool Pcsx2Config::GSOptions::OptionsAreEqual(const GSOptions& right) const
|
||||||
return (
|
return (
|
||||||
OpEqu(bitset) &&
|
OpEqu(bitset) &&
|
||||||
|
|
||||||
|
OpEqu(VsyncEnable) &&
|
||||||
|
|
||||||
OpEqu(InterlaceMode) &&
|
OpEqu(InterlaceMode) &&
|
||||||
|
|
||||||
OpEqu(Zoom) &&
|
OpEqu(Zoom) &&
|
||||||
|
|
|
@ -196,6 +196,7 @@ void SysCoreThread::ApplySettings(const Pcsx2Config& src)
|
||||||
// so, we should block here until GS has finished reinitializing, if needed.
|
// so, we should block here until GS has finished reinitializing, if needed.
|
||||||
Console.WriteLn("Applying GS settings...");
|
Console.WriteLn("Applying GS settings...");
|
||||||
GetMTGS().ApplySettings();
|
GetMTGS().ApplySettings();
|
||||||
|
GetMTGS().SetVSync(EmuConfig.GetEffectiveVsyncMode());
|
||||||
GetMTGS().WaitGS();
|
GetMTGS().WaitGS();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -239,6 +240,7 @@ void SysCoreThread::_reset_stuff_as_needed()
|
||||||
|
|
||||||
if (m_resetVsyncTimers)
|
if (m_resetVsyncTimers)
|
||||||
{
|
{
|
||||||
|
GetMTGS().SetVSync(EmuConfig.GetEffectiveVsyncMode());
|
||||||
UpdateVSyncRate();
|
UpdateVSyncRate();
|
||||||
frameLimitReset();
|
frameLimitReset();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue