swap_control_tear doesn't seem to work out for our timing or something. Let's do regular vsync.

This commit is contained in:
Henrik Rydgard 2013-08-24 11:53:54 +02:00
parent ee37d51c4b
commit 955ad2a6e4
2 changed files with 5 additions and 8 deletions

View File

@ -468,7 +468,9 @@ void GLES_GPU::BeginFrameInternal() {
if ((PSP_CoreParameter().unthrottle) || (PSP_CoreParameter().fpsLimit == 1))
desiredVSyncInterval = 0;
if (desiredVSyncInterval != lastVsync_) {
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(-desiredVSyncInterval);
} else {

View File

@ -19,12 +19,6 @@ static bool enableGLDebug = false;
#pragma optimize("", off)
void GL_SetVSyncInterval(int interval=1)
{
if( wglSwapIntervalEXT )
wglSwapIntervalEXT(interval);
}
void GL_Resized() {
if (!hWnd)
return;
@ -197,7 +191,8 @@ bool GL_Init(HWND window, std::string *error_message) {
glstate.Initialize();
CheckGLExtensions();
GL_SetVSyncInterval(0);
if( wglSwapIntervalEXT )
wglSwapIntervalEXT(0);
if (enableGLDebug && glewIsSupported("GL_ARB_debug_output")) {
glDebugMessageCallbackARB((GLDEBUGPROCARB)&DebugCallbackARB, 0); // print debug output to stderr
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);