2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-23 18:30:50 +01:00

ref: get rid of R_IncrementSpeedsCounter

This commit is contained in:
Alibek Omarov 2019-04-15 02:17:43 +03:00
parent 5be982cc72
commit 7d8b63fd88
4 changed files with 10 additions and 17 deletions

View File

@ -401,8 +401,7 @@ int CL_TempEntAddEntity( cl_entity_t *pEntity )
VectorCopy( pEntity->origin, pEntity->latched.prevorigin );
// add to list
if( CL_AddVisibleEntity( pEntity, ET_TEMPENTITY ))
ref.dllFuncs.R_IncrementSpeedsCounter( RS_ACTIVE_TENTS );
CL_AddVisibleEntity( pEntity, ET_TEMPENTITY );
return 1;
}

View File

@ -466,7 +466,6 @@ typedef struct ref_interface_s
// debug
void (*R_ShowTextures)( void );
void (*R_ShowTree)( void );
void (*R_IncrementSpeedsCounter)( int counterType );
// texture management
const byte *(*R_GetTextureOriginalBuffer)( unsigned int idx ); // not always available

View File

@ -25,18 +25,6 @@ static void R_ClearScreen( void )
pglClear( GL_COLOR_BUFFER_BIT );
}
static void R_IncrementSpeedsCounter( int type )
{
switch( type )
{
case RS_ACTIVE_TENTS:
r_stats.c_active_tents_count++;
break;
default:
gEngfuncs.Host_Error( "R_IncrementSpeedsCounter: unsupported type %d\n", type );
}
}
static const byte *R_GetTextureOriginalBuffer( unsigned int idx )
{
gl_texture_t *glt = R_GetTexture( idx );
@ -370,7 +358,6 @@ ref_interface_t gReffuncs =
R_ShowTextures,
R_ShowTree,
R_IncrementSpeedsCounter,
R_GetTextureOriginalBuffer,
GL_LoadTextureFromBuffer,

View File

@ -249,8 +249,16 @@ qboolean R_AddEntity( struct cl_entity_s *clent, int type )
if( !R_ModelOpaque( clent->curstate.rendermode ) && CL_FxBlend( clent ) <= 0 )
return true; // invisible
if( type == ET_FRAGMENTED )
switch( type )
{
case ET_FRAGMENTED:
r_stats.c_client_ents++;
break;
case ET_TEMPENTITY:
r_stats.c_active_tents_count++;
break;
default: break;
}
if( R_OpaqueEntity( clent ))
{