summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerregion.h
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-03-13 22:31:19 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-03-13 22:31:19 -0600
commit4624848a6894be669cdb19a82101ea168c407ecd (patch)
treeb74cef281742fc9ee03fe495d20ae7e06ee2b823 /indra/newview/llviewerregion.h
parent27bb36b1e796add58f319555bf761e417f7957ef (diff)
revert changes for SH-3653: Can we repurpose ObjectUpdateCached:ObjectData:UpdateFlags field to carry spatial+size data?
Diffstat (limited to 'indra/newview/llviewerregion.h')
-rw-r--r--indra/newview/llviewerregion.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/indra/newview/llviewerregion.h b/indra/newview/llviewerregion.h
index a903f61cbc..15c2b36e38 100644
--- a/indra/newview/llviewerregion.h
+++ b/indra/newview/llviewerregion.h
@@ -169,9 +169,6 @@ public:
const LLVector3d &getOriginGlobal() const;
LLVector3 getOriginAgent() const;
- //estimate weight of cache missed object
- F32 calcObjectWeight(U32 flags);
-
// Center is at the height of the water table.
const LLVector3d &getCenterGlobal() const;
LLVector3 getCenterAgent() const;
@@ -363,7 +360,7 @@ private:
F32 createVisibleObjects(F32 max_time);
F32 updateVisibleEntries(F32 max_time); //update visible entries
- void addCacheMiss(U32 id, LLViewerRegion::eCacheMissType miss_type, F32 weight);
+ void addCacheMiss(U32 id, LLViewerRegion::eCacheMissType miss_type);
void decodeBoundingInfo(LLVOCacheEntry* entry);
public:
struct CompareDistance
@@ -468,24 +465,16 @@ private:
class CacheMissItem
{
public:
- CacheMissItem(U32 id, LLViewerRegion::eCacheMissType miss_type, F32 weight) : mID(id), mType(miss_type), mWeight(weight){}
+ CacheMissItem(U32 id, LLViewerRegion::eCacheMissType miss_type) : mID(id), mType(miss_type){}
U32 mID; //local object id
LLViewerRegion::eCacheMissType mType; //cache miss type
- F32 mWeight; //importance of this object to the current camera.
struct Compare
{
bool operator()(const CacheMissItem& lhs, const CacheMissItem& rhs)
{
- if(lhs.mWeight == rhs.mWeight) //larger weight first
- {
- return &lhs < &rhs;
- }
- else
- {
- return lhs.mWeight > rhs.mWeight; //larger weight first
- }
+ return lhs.mID < rhs.mID; //smaller ID first.
}
};