removed several unused r_speeds globals.

This commit is contained in:
Ozkan Sezer 2022-07-05 08:50:02 +03:00
parent 752ef92645
commit 52a3873d44
3 changed files with 13 additions and 15 deletions

View file

@ -34,9 +34,8 @@ int r_framecount; // used for dlight push checking
mplane_t frustum[4];
//johnfitz -- rendering statistics
int rs_brushpolys, rs_aliaspolys, rs_skypolys, rs_particles, rs_fogpolys;
int rs_brushpolys, rs_aliaspolys, rs_skypolys;
int rs_dynamiclightmaps, rs_brushpasses, rs_aliaspasses, rs_skypasses;
float rs_megatexels;
//
// view origin
@ -1043,7 +1042,7 @@ void R_RenderView (void)
time1 = Sys_DoubleTime ();
//johnfitz -- rendering statistics
rs_brushpolys = rs_aliaspolys = rs_skypolys = rs_particles = rs_fogpolys = rs_megatexels =
rs_brushpolys = rs_aliaspolys = rs_skypolys =
rs_dynamiclightmaps = rs_aliaspasses = rs_skypasses = rs_brushpasses = 0;
}
else if (gl_finish.value)

View file

@ -263,9 +263,8 @@ extern qboolean gl_texture_env_combine;
extern qboolean gl_texture_env_add; // for GL_EXT_texture_env_add
//johnfitz -- rendering statistics
extern int rs_brushpolys, rs_aliaspolys, rs_skypolys, rs_particles, rs_fogpolys;
extern int rs_brushpolys, rs_aliaspolys, rs_skypolys;
extern int rs_dynamiclightmaps, rs_brushpasses, rs_aliaspasses, rs_skypasses;
extern float rs_megatexels;
//johnfitz -- track developer statistics that vary every frame
extern cvar_t devstats;

View file

@ -575,7 +575,9 @@ void R_TeleportSplash (vec3_t org)
vec3_t dir;
for (i=-16 ; i<16 ; i+=4)
{
for (j=-16 ; j<16 ; j+=4)
{
for (k=-24 ; k<32 ; k+=4)
{
if (!free_particles)
@ -602,6 +604,8 @@ void R_TeleportSplash (vec3_t org)
VectorScale (dir, vel, p->vel);
}
}
}
}
/*
===============
@ -890,8 +894,6 @@ void R_DrawParticles (void)
glTexCoord2f (0,0.5);
VectorMA (p->org, scale, right, p_right);
glVertex3fv (p_right);
rs_particles++; //johnfitz //FIXME: just use r_numparticles
}
glEnd ();
}
@ -931,8 +933,6 @@ void R_DrawParticles (void)
glTexCoord2f (0,1);
VectorMA (p->org, scale, right, p_right);
glVertex3fv (p_right);
rs_particles++; //johnfitz //FIXME: just use r_numparticles
}
glEnd ();
}