glFinish() at the end of each frame; I'm seeing the "buffer swap with unfinished frame" issue at lower framerates when this isn't being done. (FYI, this doesn't fix choppiness with X11 driver, but helps a little bit.)

This commit is contained in:
Ben Anderson
2005-03-17 01:21:13 +00:00
parent 3953ce9bb2
commit b1c17eacdb
+5
View File
@@ -797,6 +797,11 @@ bool RageDisplay_OGL::BeginFrame()
void RageDisplay_OGL::EndFrame()
{
// Give up the CPU to the OpenGL host if it wants it; in any case, make
// sure the frame is done. This helps graphics smoothness a lot by
// making sure we get the most out of each frame.
glFinish();
wind->SwapBuffers();
ProcessStatsOnFlip();
}