Skip to content

Commit 63add75

Browse files
Disabled MSAA 16x option which is a performance killer in combination with shadow mapping
1 parent 66889f5 commit 63add75

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

neo/d3xp/menus/MenuScreen_Shell_SystemOptions.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,10 @@ void idMenuScreen_Shell_SystemOptions::idMenuDataSource_SystemSettings::AdjustFi
499499
}
500500
case SYSTEM_FIELD_ANTIALIASING:
501501
{
502-
static const int numValues = 5;
503-
static const int values[numValues] = { 0, 2, 4, 8, 16 };
502+
// RB: disabled 16x MSAA
503+
static const int numValues = 4;
504+
static const int values[numValues] = { 0, 2, 4, 8 };
505+
// RB end
504506
r_multiSamples.SetInteger( AdjustOption( r_multiSamples.GetInteger(), values, numValues, adjustAmount ) );
505507
break;
506508
}

neo/renderer/RenderSystem_init.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ idCVar r_requestStereoPixelFormat( "r_requestStereoPixelFormat", "1", CVAR_RENDE
5050
idCVar r_debugContext( "r_debugContext", "0", CVAR_RENDERER, "Enable various levels of context debug." );
5151
idCVar r_glDriver( "r_glDriver", "", CVAR_RENDERER, "\"opengl32\", etc." );
5252
idCVar r_skipIntelWorkarounds( "r_skipIntelWorkarounds", "0", CVAR_RENDERER | CVAR_BOOL, "skip workarounds for Intel driver bugs" );
53-
idCVar r_multiSamples( "r_multiSamples", "0", CVAR_RENDERER | CVAR_ARCHIVE | CVAR_INTEGER, "number of antialiasing samples" );
53+
// RB: disabled 16x MSAA
54+
idCVar r_multiSamples( "r_multiSamples", "0", CVAR_RENDERER | CVAR_ARCHIVE | CVAR_INTEGER, "number of antialiasing samples", 0, 8 );
55+
// RB end
5456
idCVar r_vidMode( "r_vidMode", "0", CVAR_ARCHIVE | CVAR_RENDERER | CVAR_INTEGER, "fullscreen video mode number" );
5557
idCVar r_displayRefresh( "r_displayRefresh", "0", CVAR_RENDERER | CVAR_INTEGER | CVAR_NOCHEAT, "optional display refresh rate option for vid mode", 0.0f, 240.0f );
5658
#ifdef WIN32

0 commit comments

Comments
 (0)