From: havoc Date: Sun, 2 Dec 2007 09:55:26 +0000 (+0000) Subject: added r_speeds 3 mode which does not use glFinish X-Git-Tag: xonotic-v0.1.0preview~2740 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ec5bfe9159477756e615cf1cd69dfb66ac75b9a2;p=xonotic%2Fdarkplaces.git added r_speeds 3 mode which does not use glFinish git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7744 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_screen.c b/cl_screen.c index 99f5d166..454e3e1f 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -643,7 +643,9 @@ void R_TimeReport(char *desc) return; CHECKGLERROR - qglFinish();CHECKGLERROR + if (r_speeds.integer == 2) + qglFinish(); + CHECKGLERROR r_timereport_temp = r_timereport_current; r_timereport_current = Sys_DoubleTime(); t = (int) ((r_timereport_current - r_timereport_temp) * 1000000.0 + 0.5);