X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=gl_screen.c;h=43923c65ebd5e8a5338601505cfdb3506bf3816a;hp=ad3691a3a5e9297589a2c1e4543619740757faca;hb=9f6e4476fe8049342ac61c87ab7286912c1ff97c;hpb=bcf77da497c3aa980ccaeded69e0966937590350 diff --git a/gl_screen.c b/gl_screen.c index ad3691a3..43923c65 100644 --- a/gl_screen.c +++ b/gl_screen.c @@ -838,25 +838,18 @@ SCR_UpdateScreen This is called every frame, and can also be called explicitly to flush text to the screen. -WARNING: be very careful calling this from elsewhere, because the refresh -needs almost the entire 256k of stack space! +LordHavoc: due to my rewrite of R_WorldNode, it no longer takes 256k of stack space :) ================== */ extern cvar_t gl_vertexarrays; extern qboolean gl_arrays; void GL_Finish(); -int c_nodes; void SCR_UpdateScreen (void) { double time1 = 0, time2; if (r_speeds.value) - { time1 = Sys_FloatTime (); - c_brush_polys = 0; - c_alias_polys = 0; - c_nodes = 0; - } if (!gl_arrays) gl_vertexarrays.value = 0; @@ -899,7 +892,7 @@ void SCR_UpdateScreen (void) if (vid.recalc_refdef) SCR_CalcRefdef (); - glClearColor(0,0,0,0); + glClearColor(1,0,0,0); glClear (GL_COLOR_BUFFER_BIT); // LordHavoc: clear the screen (around the view as well) // @@ -970,7 +963,7 @@ void SCR_UpdateScreen (void) if (r_speeds.value) { time2 = Sys_FloatTime (); - Con_Printf ("%3i ms %4i wpoly %4i epoly %4i transpoly %4i BSPnodes\n", (int)((time2-time1)*1000), c_brush_polys, c_alias_polys, currenttranspoly, c_nodes); + Con_Printf ("%3i ms %4i wpoly %4i epoly %4i transpoly %4i lightpoly %4i BSPnodes %4i BSPleafs\n", (int)((time2-time1)*1000), c_brush_polys, c_alias_polys, currenttranspoly, c_light_polys, c_nodes, c_leafs); } GL_EndRendering (); }