]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added glFlush call when done feeding geometry, to get a very nice speed boost, and...
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Feb 2002 04:57:43 +0000 (04:57 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Feb 2002 04:57:43 +0000 (04:57 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1581 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c

index 810900a7290a2f82b57db047cff43b91105aa152..b0d287b07324eada45f9135ae45900969dfb21a1 100644 (file)
@@ -1524,9 +1524,6 @@ void SCR_UpdateScreen (void)
        //Mem_CheckSentinelsGlobal();
        //R_TimeReport("memtest");
 
-       glFinish ();
-       CHECKGLERROR
-
        VID_Finish ();
 
        R_TimeReport("finish");
@@ -1552,4 +1549,8 @@ void SCR_UpdateScreen (void)
 
        // draw 2D stuff
        R_DrawQueue();
+
+       // tell driver to commit it's partially full geometry queue to the rendering queue
+       // (this doesn't wait for the commands themselves to complete)
+       glFlush();
 }