Add cache control to GetMesh2

Sat, 15 Feb 2014 13:10:12 -0800

author
Tank_Master
date
Sat, 15 Feb 2014 13:10:12 -0800
changeset 40760
b53af5dd80c2
parent 40759
d461d91f64e4
child 40761
38f2a9fd24ee

Add cache control to GetMesh2

indra/newview/llmeshrepository.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/llmeshrepository.cpp	Thu Feb 13 21:07:30 2014 +0100
     1.2 +++ b/indra/newview/llmeshrepository.cpp	Sat Feb 15 13:10:12 2014 -0800
     1.3 @@ -3208,7 +3208,11 @@
     1.4  	{
     1.5  		// GetMesh2 operation with keepalives, etc.  With pipelining,
     1.6  		// we'll increase this.
     1.7 -		LLMeshRepoThread::sMaxConcurrentRequests = gSavedSettings.getU32("Mesh2MaxConcurrentRequests");
     1.8 +		// <FS:TM> Use faster LLCachedControls for frequently visited locations
     1.9 +		//LLMeshRepoThread::sMaxConcurrentRequests = gSavedSettings.getU32("Mesh2MaxConcurrentRequests");
    1.10 +		static LLCachedControl<U32> mesh2MaxConcurrentRequests(gSavedSettings, "Mesh2MaxConcurrentRequests");
    1.11 +		LLMeshRepoThread::sMaxConcurrentRequests = (U32)mesh2MaxConcurrentRequests;
    1.12 +		// </FS:TM>
    1.13  		LLMeshRepoThread::sRequestHighWater = llclamp(5 * S32(LLMeshRepoThread::sMaxConcurrentRequests),
    1.14  													  REQUEST2_HIGH_WATER_MIN,
    1.15  													  REQUEST2_HIGH_WATER_MAX);

mercurial