VideoCommon: Skip vsync if configured emulation speed is not 100%

It doesn't make much sense to try to vsync at weird framerates, and
vsync actually causes the speed setting to not work as expected.
This commit is contained in:
Techjar 2018-09-05 05:19:17 -04:00
parent 5f0d825f40
commit e9046f8eec
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@
#include "Common/CommonTypes.h"
#include "Common/StringUtil.h"
#include "Core/Config/GraphicsSettings.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "Core/Movie.h"
#include "VideoCommon/OnScreenDisplay.h"
@ -174,7 +175,8 @@ void VideoConfig::VerifyValidity()
bool VideoConfig::IsVSync() const
{
return bVSync && !Core::GetIsThrottlerTempDisabled();
return bVSync && !Core::GetIsThrottlerTempDisabled() &&
SConfig::GetInstance().m_EmulationSpeed == 1.0;
}
bool VideoConfig::UsingUberShaders() const