diff options
author | cosmic-linden <111533034+cosmic-linden@users.noreply.github.com> | 2024-09-10 17:38:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 17:38:32 -0700 |
commit | f90712b9837957f2a0d11386c6bf48e9a48ff745 (patch) | |
tree | df1dbaf2d2024bed5cd4dd0cd8a80d1ce3f71e2c /indra/newview/llvoavatar.cpp | |
parent | 13e74a32871c7c8f7c7556c6fc08150fc6f27876 (diff) | |
parent | cde5d29faf84c5cb7fc1b0d0ff6d03f3b7354c8f (diff) |
Merge pull request #2544 from secondlife/davep-profile-session-9/10
Profile guided optimizations
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r-- | indra/newview/llvoavatar.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 02e4e6bef2..5329b354d3 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -10689,14 +10689,18 @@ void LLVOAvatar::updateRiggingInfo() std::map<LLUUID, S32> curr_rigging_info_key; - // Get current rigging info key - for (LLVOVolume* vol : volumes) { - if (vol->isMesh() && vol->getVolume()) + LL_PROFILE_ZONE_NAMED_CATEGORY_AVATAR("update rig info - get key") + + // Get current rigging info key + for (LLVOVolume* vol : volumes) { - const LLUUID& mesh_id = vol->getVolume()->getParams().getSculptID(); - S32 max_lod = llmax(vol->getLOD(), vol->mLastRiggingInfoLOD); - curr_rigging_info_key[mesh_id] = max_lod; + if (vol->isMesh() && vol->getVolume()) + { + const LLUUID& mesh_id = vol->getVolume()->getParams().getSculptID(); + S32 max_lod = llmax(vol->getLOD(), vol->mLastRiggingInfoLOD); + curr_rigging_info_key[mesh_id] = max_lod; + } } } |