Skip to content

Commit eaac092

Browse files
committed
perf: add a few more DX8 effects to mat_reducefillrate
despite being a less efficient renderer, DX8 is still used for performance reasons due to its lower quality settings. we can continue to provide these lower quality settings with the much more robust and efficient DX9 renderer, which will benefit the playerbase and game.
1 parent 34be394 commit eaac092

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/engine/gl_warp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ bool R_LoadNamedSkys( const char *skyname )
106106
bool success = true;
107107
const char *skyboxsuffix[ 6 ] = { "rt", "bk", "lf", "ft", "up", "dn" };
108108

109-
bool bUseDx8Skyboxes = ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() < 90 );
109+
bool bUseDx8Skyboxes = ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() < 90 || g_pMaterialSystemHardwareConfig->PreferReducedFillrate() );
110110
for ( int i = 0; i < 6; i++ )
111111
{
112112
skies[i] = NULL;

src/game/client/tf/c_tf_player.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7371,15 +7371,15 @@ int C_TFPlayer::DrawModel( int flags )
73717371
// Don't draw the model at all if we're fully invisible
73727372
if ( GetEffectiveInvisibilityLevel() >= 1.0f )
73737373
{
7374-
if ( m_hHalloweenBombHat && ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() < 90 ) && !m_hHalloweenBombHat->IsEffectActive( EF_NODRAW ) )
7374+
if ( m_hHalloweenBombHat && ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() < 90 || g_pMaterialSystemHardwareConfig->PreferReducedFillrate() ) && !m_hHalloweenBombHat->IsEffectActive( EF_NODRAW ) )
73757375
{
73767376
m_hHalloweenBombHat->SetEffects( EF_NODRAW );
73777377
}
73787378
return 0;
73797379
}
73807380
else
73817381
{
7382-
if ( m_hHalloweenBombHat && ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() < 90 ) && m_hHalloweenBombHat->IsEffectActive( EF_NODRAW ) )
7382+
if ( m_hHalloweenBombHat && ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() < 90 || g_pMaterialSystemHardwareConfig->PreferReducedFillrate() ) && m_hHalloweenBombHat->IsEffectActive( EF_NODRAW ) )
73837383
{
73847384
m_hHalloweenBombHat->RemoveEffects( EF_NODRAW );
73857385
}

0 commit comments

Comments
 (0)