Skip to content

Commit 7278536

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 122734d commit 7278536

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
@@ -7372,15 +7372,15 @@ int C_TFPlayer::DrawModel( int flags )
73727372
// Don't draw the model at all if we're fully invisible
73737373
if ( GetEffectiveInvisibilityLevel() >= 1.0f )
73747374
{
7375-
if ( m_hHalloweenBombHat && ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() < 90 ) && !m_hHalloweenBombHat->IsEffectActive( EF_NODRAW ) )
7375+
if ( m_hHalloweenBombHat && ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() < 90 || g_pMaterialSystemHardwareConfig->PreferReducedFillrate() ) && !m_hHalloweenBombHat->IsEffectActive( EF_NODRAW ) )
73767376
{
73777377
m_hHalloweenBombHat->SetEffects( EF_NODRAW );
73787378
}
73797379
return 0;
73807380
}
73817381
else
73827382
{
7383-
if ( m_hHalloweenBombHat && ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() < 90 ) && m_hHalloweenBombHat->IsEffectActive( EF_NODRAW ) )
7383+
if ( m_hHalloweenBombHat && ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() < 90 || g_pMaterialSystemHardwareConfig->PreferReducedFillrate() ) && m_hHalloweenBombHat->IsEffectActive( EF_NODRAW ) )
73847384
{
73857385
m_hHalloweenBombHat->RemoveEffects( EF_NODRAW );
73867386
}

0 commit comments

Comments
 (0)