summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoConfig.cpp
diff options
context:
space:
mode:
authorTechjar <tecknojar@gmail.com>2018-09-05 05:19:17 -0400
committerTechjar <tecknojar@gmail.com>2018-09-05 05:40:22 -0400
commite9046f8eecc94fdf9218316f6d28d9b43d903f92 (patch)
treee1749eca4ba2933f1887fa972837e6fca3981cf3 /Source/Core/VideoCommon/VideoConfig.cpp
parent5f0d825f40b8aabe13eaef32d44ab667ff8e8c28 (diff)
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.
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoConfig.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp
index a0029df1e7..5fb5d843cc 100644
--- a/Source/Core/VideoCommon/VideoConfig.cpp
+++ b/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