Faster skin lookup for rigged rendering; Found by Zwagoth Klaar

master
Ansariel 2013-04-14 17:08:39 +02:00
parent 6cfdfcb771
commit dfd71b9b49
1 changed files with 7 additions and 1 deletions

View File

@ -33,6 +33,9 @@
#include "llviewertexture.h"
#include "llvolume.h"
#include "fscommon.h"
#include <boost/unordered_map.hpp>
#define LLCONVEXDECOMPINTER_STATIC 1
#include "llconvexdecomposition.h"
@ -570,7 +573,10 @@ public:
typedef std::map<LLVolumeParams, std::set<LLUUID> > mesh_load_map;
mesh_load_map mLoadingMeshes[4];
typedef std::map<LLUUID, LLMeshSkinInfo> skin_map;
// <FS:Ansariel> Faster lookup
//typedef std::map<LLUUID, LLMeshSkinInfo> skin_map;
typedef boost::unordered_map<LLUUID, LLMeshSkinInfo, FSUUIDEntryHasher> skin_map;
// </FS:Ansariel>
skin_map mSkinMap;
typedef std::map<LLUUID, LLModel::Decomposition*> decomposition_map;