Feature Request: Make new ARC threshold change based on debug setting

Adds LiruNewARCLimit debug setting
This commit is contained in:
Lirusaito
2013-07-19 07:07:26 -04:00
parent 663d0a29f2
commit aaf010da4c
2 changed files with 12 additions and 1 deletions

View File

@@ -718,6 +718,17 @@
<key>Value</key>
<integer>0</integer>
</map>
<key>LiruNewARCLimit</key>
<map>
<key>Comment</key>
<string>The high threshold number used to calculate the colors displayed for new ARC numbers, when LiruSensibleARC is false. Default is 20000.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>U32</string>
<key>Value</key>
<integer>20000</integer>
</map>
<key>LiruNoTransactionClutter</key>
<map>
<key>Comment</key>

View File

@@ -8763,7 +8763,7 @@ void LLVOAvatar::idleUpdateRenderCost()
else
{
static const U32 ARC_BODY_PART_COST = 200;
static const U32 ARC_LIMIT = 20000;
static const LLCachedControl<U32> ARC_LIMIT("LiruNewARCLimit", 20000);
static std::set<LLUUID> all_textures;