Revert a commit from 5 years ago that added a glFinish call before swapping on Window...
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 6 Sep 2008 13:24:42 +0000 (13:24 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 6 Sep 2008 13:24:42 +0000 (13:24 +0000)
intern/ghost/intern/GHOST_WindowWin32.cpp

index fef58d071a457a3412c72bfbe1344e8875c4d097..c30b915c019b4068661fa82fa86b02f6d58a1284 100644 (file)
@@ -437,7 +437,13 @@ GHOST_TSuccess GHOST_WindowWin32::swapBuffers()
        // adding a glFinish() here is to prevent Geforce in 'full scene antialias' mode
        // from antialising the Blender window. Officially a swapbuffers does a glFinish
        // itself, so this feels really like a hack... but it won't harm. (ton)
-       glFinish();
+       // 
+       // disabled this because it is a performance killer for the game engine, glFinish
+       // forces synchronization with the graphics card and calling it is strongly
+       // discouraged for good performance. (brecht)
+       //
+       // glFinish();
+
        return ::SwapBuffers(m_hDC) == TRUE ? GHOST_kSuccess : GHOST_kFailure;
 }