Disable the adaptive vsync checks by commenting them out. No need to have a disabled check run every frame.

This commit is contained in:
The Dax committed 2014-03-24 20:15:41 -04:00
1 parent bda7db293d
commit 1ca3d39a50
1 file changed
+10 -8
+10 -8
View File
@@ -384,12 +384,14 @@ GLES_GPU::GLES_GPU()
: resized_(false) {
#ifdef _WIN32
lastVsync_ = g_Config.bVSync ? 1 : 0;
if (gl_extensions.EXT_swap_control_tear) {
// Disabled EXT_swap_control_tear for now, it never seems to settle at the correct timing
// so it just keeps tearing. Not what I hoped for...
//if (false && gl_extensions.EXT_swap_control_tear) {
// See http://developer.download.nvidia.com/opengl/specs/WGL_EXT_swap_control_tear.txt
glstate.SetVSyncInterval(g_Config.bVSync ? -1 :0);
} else {
// glstate.SetVSyncInterval(g_Config.bVSync ? -1 :0);
//} else {
glstate.SetVSyncInterval(g_Config.bVSync ? 1 : 0);
}
//}
#endif
shaderManager_ = new ShaderManager();
@@ -517,12 +519,12 @@ void GLES_GPU::BeginFrameInternal() {
if (desiredVSyncInterval != lastVsync_) {
// Disabled EXT_swap_control_tear for now, it never seems to settle at the correct timing
// so it just keeps tearing. Not what I hoped for...
if (false && gl_extensions.EXT_swap_control_tear) {
//if (false && gl_extensions.EXT_swap_control_tear) {
// See http://developer.download.nvidia.com/opengl/specs/WGL_EXT_swap_control_tear.txt
glstate.SetVSyncInterval(-desiredVSyncInterval);
} else {
// glstate.SetVSyncInterval(-desiredVSyncInterval);
//} else {
glstate.SetVSyncInterval(desiredVSyncInterval);
}
//}
lastVsync_ = desiredVSyncInterval;
}
#endif