Skip to content

Commit

Permalink
Fixed #9459 (Increase default-set max streaming memory)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccw808 committed Nov 17, 2016
1 parent 0970453 commit 1b9161f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Client/core/CClientVariables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ void CClientVariables::LoadDefaults ( void )
Set ( "display_resolution", SString ( "%dx%dx32", rect.right, rect.bottom ) );
}

// We will default this one at CClientGame.cpp, because we need a valid direct3d device to give a proper default value.
// We will default this one during CProxyDirect3DDevice9 constructor, because we need a valid direct3d device to give a proper default value.
#if 0
DEFAULT ( "streaming_memory", 50 ); // Streaming memory
#endif
Expand Down
4 changes: 4 additions & 0 deletions Client/core/DXHook/CProxyDirect3DDevice9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ CProxyDirect3DDevice9::CProxyDirect3DDevice9 ( IDirect3DDevice9 * pDevice )
, g_pDeviceState->AdapterState.MaxAnisotropicSetting
) );

// Give a default value for the streaming memory setting
if ( g_pCore->GetCVars()->Exists( "streaming_memory" ) == false )
g_pCore->GetCVars()->Set( "streaming_memory", g_pCore->GetMaxStreamingMemory() );

// Call event handler
CDirect3DEvents9::OnDirect3DDeviceCreate ( pDevice );
}
Expand Down
4 changes: 0 additions & 4 deletions Client/mods/deathmatch/logic/CClientGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,6 @@ CClientGame::CClientGame ( bool bLocalPlay )

// Reset test mode script settings to default
g_pCore->GetGraphics ()->GetRenderItemManager ()->SetTestMode ( DX_TEST_MODE_NONE );

// Give a default value for the streaming memory
if ( g_pCore->GetCVars()->Exists ( "streaming_memory" ) == false )
g_pCore->GetCVars()->Set ( "streaming_memory", g_pCore->GetMaxStreamingMemory () );
}


Expand Down

0 comments on commit 1b9161f

Please sign in to comment.