glFlush(), not glFinish(); easier on performance, behaves well on X11 / NVIDIA_GLX now, probably helps other platforms as well

This commit is contained in:
Ben Anderson
2005-03-22 01:32:05 +00:00
parent 7ca20486ef
commit cb34dc4175
+4 -4
View File
@@ -797,10 +797,10 @@ 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();
// glFlush(), not glFinish(); NVIDIA_GLX's glFinish()'s behavior is
// nowhere near performance-friendly and uses unholy amounts of CPU for
// Gog-knows-what.
glFlush();
wind->SwapBuffers();
ProcessStatsOnFlip();