From dfd71b9b4996e40fbf194a301c0b07e93b5a2aa5 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sun, 14 Apr 2013 17:08:39 +0200 Subject: [PATCH] Faster skin lookup for rigged rendering; Found by Zwagoth Klaar --- indra/newview/llmeshrepository.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/indra/newview/llmeshrepository.h b/indra/newview/llmeshrepository.h index 1f74a37300..4ede8d1ec7 100644 --- a/indra/newview/llmeshrepository.h +++ b/indra/newview/llmeshrepository.h @@ -33,6 +33,9 @@ #include "llviewertexture.h" #include "llvolume.h" +#include "fscommon.h" +#include + #define LLCONVEXDECOMPINTER_STATIC 1 #include "llconvexdecomposition.h" @@ -570,7 +573,10 @@ public: typedef std::map > mesh_load_map; mesh_load_map mLoadingMeshes[4]; - typedef std::map skin_map; + // Faster lookup + //typedef std::map skin_map; + typedef boost::unordered_map skin_map; + // skin_map mSkinMap; typedef std::map decomposition_map;