mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 16:24:16 +00:00
ref: get rid of R_IncrementSpeedsCounter
This commit is contained in:
parent
5be982cc72
commit
7d8b63fd88
@ -401,8 +401,7 @@ int CL_TempEntAddEntity( cl_entity_t *pEntity )
|
|||||||
VectorCopy( pEntity->origin, pEntity->latched.prevorigin );
|
VectorCopy( pEntity->origin, pEntity->latched.prevorigin );
|
||||||
|
|
||||||
// add to list
|
// add to list
|
||||||
if( CL_AddVisibleEntity( pEntity, ET_TEMPENTITY ))
|
CL_AddVisibleEntity( pEntity, ET_TEMPENTITY );
|
||||||
ref.dllFuncs.R_IncrementSpeedsCounter( RS_ACTIVE_TENTS );
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -466,7 +466,6 @@ typedef struct ref_interface_s
|
|||||||
// debug
|
// debug
|
||||||
void (*R_ShowTextures)( void );
|
void (*R_ShowTextures)( void );
|
||||||
void (*R_ShowTree)( void );
|
void (*R_ShowTree)( void );
|
||||||
void (*R_IncrementSpeedsCounter)( int counterType );
|
|
||||||
|
|
||||||
// texture management
|
// texture management
|
||||||
const byte *(*R_GetTextureOriginalBuffer)( unsigned int idx ); // not always available
|
const byte *(*R_GetTextureOriginalBuffer)( unsigned int idx ); // not always available
|
||||||
|
@ -25,18 +25,6 @@ static void R_ClearScreen( void )
|
|||||||
pglClear( GL_COLOR_BUFFER_BIT );
|
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 )
|
static const byte *R_GetTextureOriginalBuffer( unsigned int idx )
|
||||||
{
|
{
|
||||||
gl_texture_t *glt = R_GetTexture( idx );
|
gl_texture_t *glt = R_GetTexture( idx );
|
||||||
@ -370,7 +358,6 @@ ref_interface_t gReffuncs =
|
|||||||
|
|
||||||
R_ShowTextures,
|
R_ShowTextures,
|
||||||
R_ShowTree,
|
R_ShowTree,
|
||||||
R_IncrementSpeedsCounter,
|
|
||||||
|
|
||||||
R_GetTextureOriginalBuffer,
|
R_GetTextureOriginalBuffer,
|
||||||
GL_LoadTextureFromBuffer,
|
GL_LoadTextureFromBuffer,
|
||||||
|
@ -249,8 +249,16 @@ qboolean R_AddEntity( struct cl_entity_s *clent, int type )
|
|||||||
if( !R_ModelOpaque( clent->curstate.rendermode ) && CL_FxBlend( clent ) <= 0 )
|
if( !R_ModelOpaque( clent->curstate.rendermode ) && CL_FxBlend( clent ) <= 0 )
|
||||||
return true; // invisible
|
return true; // invisible
|
||||||
|
|
||||||
if( type == ET_FRAGMENTED )
|
switch( type )
|
||||||
|
{
|
||||||
|
case ET_FRAGMENTED:
|
||||||
r_stats.c_client_ents++;
|
r_stats.c_client_ents++;
|
||||||
|
break;
|
||||||
|
case ET_TEMPENTITY:
|
||||||
|
r_stats.c_active_tents_count++;
|
||||||
|
break;
|
||||||
|
default: break;
|
||||||
|
}
|
||||||
|
|
||||||
if( R_OpaqueEntity( clent ))
|
if( R_OpaqueEntity( clent ))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user