Merge pull request #7398 from Techjar/emu-speed-skip-vsync

VideoCommon: Skip vsync if configured emulation speed is not 100%
This commit is contained in:
Léo Lam 2018-09-16 15:19:45 +02:00 committed by GitHub
commit c49eb2d249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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