diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2017-04-18 14:11:50 +0300 | 
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2017-04-18 14:11:50 +0300 | 
| commit | 629e58bc1f34eb72b7f62691f9d6a342a2511aab (patch) | |
| tree | 58ece510cdcd9d4bd1adaa0a1fc2b332e52e4033 /indra | |
| parent | 0a48d57884aeb6631d0b1c7574c02fb5f3141e39 (diff) | |
MAINT-7313 Connect the recent per attachment reported render weight cap to a debug setting.
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llvoavatar.cpp | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 571dc73013..3968266c27 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -119,6 +119,7 @@ const F32 MAX_HOVER_Z = 2.0;  const F32 MIN_HOVER_Z = -2.0;  const F32 MIN_ATTACHMENT_COMPLEXITY = 0.f; +const F32 DEFAULT_MAX_ATTACHMENT_COMPLEXITY = 1.0e6f;  using namespace LLAvatarAppearanceDefines; @@ -9017,8 +9018,10 @@ void LLVOAvatar::calculateUpdateRenderComplexity()       * the official viewer for consideration.       *****************************************************************/  	static const U32 COMPLEXITY_BODY_PART_COST = 200; -	static LLCachedControl<F32> max_complexity(gSavedSettings,"MaxAttachmentComplexity"); -	F32 MAX_ATTACHMENT_COMPLEXITY = max_complexity; +	static LLCachedControl<F32> max_complexity_setting(gSavedSettings,"MaxAttachmentComplexity"); +	F32 max_attachment_complexity = max_complexity_setting; +	max_attachment_complexity = llmax(max_attachment_complexity, DEFAULT_MAX_ATTACHMENT_COMPLEXITY); +  	// Diagnostic list of all textures on our avatar  	static std::set<LLUUID> all_textures; @@ -9099,7 +9102,7 @@ void LLVOAvatar::calculateUpdateRenderComplexity()                                                     << " children: " << attachment_children_cost                                                     << LL_ENDL;                              // Limit attachment complexity to avoid signed integer flipping of the wearer's ACI -                            cost += (U32)llclamp(attachment_total_cost, MIN_ATTACHMENT_COMPLEXITY, MAX_ATTACHMENT_COMPLEXITY); +                            cost += (U32)llclamp(attachment_total_cost, MIN_ATTACHMENT_COMPLEXITY, max_attachment_complexity);  						}  					}  				} | 
