Skip to content

Commit

Permalink
Merge pull request #7398 from Techjar/emu-speed-skip-vsync
Browse files Browse the repository at this point in the history
VideoCommon: Skip vsync if configured emulation speed is not 100%
  • Loading branch information
leoetlino committed Sep 16, 2018
2 parents 80c402e + e9046f8 commit c49eb2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Core/VideoCommon/VideoConfig.cpp
Expand Up @@ -8,6 +8,7 @@
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Common/StringUtil.h" #include "Common/StringUtil.h"
#include "Core/Config/GraphicsSettings.h" #include "Core/Config/GraphicsSettings.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h" #include "Core/Core.h"
#include "Core/Movie.h" #include "Core/Movie.h"
#include "VideoCommon/OnScreenDisplay.h" #include "VideoCommon/OnScreenDisplay.h"
Expand Down Expand Up @@ -174,7 +175,8 @@ void VideoConfig::VerifyValidity()


bool VideoConfig::IsVSync() const bool VideoConfig::IsVSync() const
{ {
return bVSync && !Core::GetIsThrottlerTempDisabled(); return bVSync && !Core::GetIsThrottlerTempDisabled() &&
SConfig::GetInstance().m_EmulationSpeed == 1.0;
} }


bool VideoConfig::UsingUberShaders() const bool VideoConfig::UsingUberShaders() const
Expand Down

0 comments on commit c49eb2d

Please sign in to comment.