diff options
author | andreykproductengine <akleshchev@productengine.com> | 2016-12-14 18:28:12 +0200 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2016-12-14 18:28:12 +0200 |
commit | ae9d9bb5c88f557e45df004c3d7fa4cf6bab064b (patch) | |
tree | 3e5fe2685c366dccef2dc0a1b19d7c768a3404b6 /indra | |
parent | f5e1ba26b7d9890e0735a22c875e0040bb504f3c (diff) |
MAINT-6999 Cap attachment render weight
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llvovolume.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 8b25cfaa58..e573138101 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -81,6 +81,8 @@ const F32 FORCE_SIMPLE_RENDER_AREA = 512.f; const F32 FORCE_CULL_AREA = 8.f; +const F32 MIN_RENDER_COMPLEXITY = 0.f; +const F32 MAX_RENDER_COMPLEXITY = 1.0e6f; U32 JOINT_COUNT_REQUIRED_FOR_FULLRIG = 1; BOOL gAnimateTextures = TRUE; @@ -3626,6 +3628,8 @@ U32 LLVOVolume::getRenderCost(texture_cost_t &textures) const shame += media_faces * ARC_MEDIA_FACE_COST; } + shame = llclamp(shame, MIN_RENDER_COMPLEXITY, MAX_RENDER_COMPLEXITY); + if (shame > mRenderComplexity_current) { mRenderComplexity_current = (S32)shame; |