From 4e2a691e47f1d833159cafef57a1c63ec7e03047 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 17 Jan 2006 01:43:11 +0000 Subject: [PATCH] implement frame limiting in OGL --- stepmania/src/RageDisplay_OGL.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index cfab73257d..83aeebf14f 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -678,7 +678,10 @@ void RageDisplay_OGL::EndFrame() // Gog-knows-what. glFlush(); + FrameLimitBeforeVsync( g_pWind->GetActualVideoModeParams().rate ); g_pWind->SwapBuffers(); + if( iRefreshRate > 0 ) + FrameLimitAfterVsync(); g_pWind->Update();