From: lordhavoc Date: Wed, 27 Feb 2002 04:57:43 +0000 (+0000) Subject: added glFlush call when done feeding geometry, to get a very nice speed boost, and... X-Git-Tag: RELEASE_0_2_0_RC1~608 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d8c2fec3b2fb4a243bfbadfc873fc7d4623c1bcd;p=xonotic%2Fdarkplaces.git added glFlush call when done feeding geometry, to get a very nice speed boost, and removed unnecessary glFinish (since VID_Finish does one itself) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1581 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_backend.c b/gl_backend.c index 810900a7..b0d287b0 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -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(); }