Permalink
Browse files

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.
  • Loading branch information...
Techjar committed Sep 5, 2018
1 parent 5f0d825 commit e9046f8eecc94fdf9218316f6d28d9b43d903f92
Showing with 3 additions and 1 deletion.
  1. +3 −1 Source/Core/VideoCommon/VideoConfig.cpp
@@ -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

0 comments on commit e9046f8

Please sign in to comment.