diff options
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
| -rw-r--r-- | indra/newview/llspatialpartition.cpp | 36 | 
1 files changed, 1 insertions, 35 deletions
| diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp index 122a01ebcb..96bf9d2ffa 100644 --- a/indra/newview/llspatialpartition.cpp +++ b/indra/newview/llspatialpartition.cpp @@ -55,7 +55,7 @@  #include "llviewershadermgr.h"  static LLFastTimer::DeclareTimer FTM_FRUSTUM_CULL("Frustum Culling"); -static LLFastTimer::DeclareTimer FTM_CULL_REBOUND("Cull Rebound"); +static LLFastTimer::DeclareTimer FTM_CULL_REBOUND("Cull Rebound Partition");  const F32 SG_OCCLUSION_FUDGE = 0.25f;  #define SG_DISCARD_TOLERANCE 0.01f @@ -376,7 +376,6 @@ LLSpatialGroup::~LLSpatialGroup()  		}  	} -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  	clearDrawMap();  	clearAtlasList() ;  } @@ -615,8 +614,6 @@ void LLSpatialGroup::validateDrawMap()  BOOL LLSpatialGroup::updateInGroup(LLDrawable *drawablep, BOOL immediate)  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION); -		  	drawablep->updateSpatialExtents();  	OctreeNode* parent = mOctreeNode->getOctParent(); @@ -638,7 +635,6 @@ BOOL LLSpatialGroup::updateInGroup(LLDrawable *drawablep, BOOL immediate)  BOOL LLSpatialGroup::addObject(LLDrawable *drawablep, BOOL add_all, BOOL from_octree)  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  	if (!from_octree)  	{  		mOctreeNode->insert(drawablep); @@ -664,7 +660,6 @@ BOOL LLSpatialGroup::addObject(LLDrawable *drawablep, BOOL add_all, BOOL from_oc  void LLSpatialGroup::rebuildGeom()  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  	if (!isDead())  	{  		mSpatialPartition->rebuildGeom(this); @@ -876,7 +871,6 @@ LLSpatialGroup* LLSpatialGroup::getParent()  BOOL LLSpatialGroup::removeObject(LLDrawable *drawablep, BOOL from_octree)  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  	unbound();  	if (mOctreeNode && !from_octree)  	{ @@ -913,7 +907,6 @@ BOOL LLSpatialGroup::removeObject(LLDrawable *drawablep, BOOL from_octree)  void LLSpatialGroup::shift(const LLVector4a &offset)  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  	LLVector4a t = mOctreeNode->getCenter();  	t.add(offset);	  	mOctreeNode->setCenter(t); @@ -968,8 +961,6 @@ void LLSpatialGroup::setState(U32 state)  void LLSpatialGroup::setState(U32 state, S32 mode)   { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION); -  	llassert(state <= LLSpatialGroup::STATE_MASK);  	if (mode > STATE_MODE_SINGLE) @@ -1026,8 +1017,6 @@ void LLSpatialGroup::clearState(U32 state, S32 mode)  {  	llassert(state <= LLSpatialGroup::STATE_MASK); -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION); -	  	if (mode > STATE_MODE_SINGLE)  	{  		if (mode == STATE_MODE_DIFF) @@ -1084,8 +1073,6 @@ public:  void LLSpatialGroup::setOcclusionState(U32 state, S32 mode)   { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION); -	  	if (mode > STATE_MODE_SINGLE)  	{  		if (mode == STATE_MODE_DIFF) @@ -1150,8 +1137,6 @@ public:  void LLSpatialGroup::clearOcclusionState(U32 state, S32 mode)  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION); -	  	if (mode > STATE_MODE_SINGLE)  	{  		if (mode == STATE_MODE_DIFF) @@ -1203,7 +1188,6 @@ LLSpatialGroup::LLSpatialGroup(OctreeNode* node, LLSpatialPartition* part) :  	ll_assert_aligned(this,16);  	sNodeCount++; -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  	mViewAngle.splat(0.f);  	mLastUpdateViewAngle.splat(-1.f); @@ -1389,7 +1373,6 @@ BOOL LLSpatialGroup::changeLOD()  void LLSpatialGroup::handleInsertion(const TreeNode* node, LLDrawable* drawablep)  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  	addObject(drawablep, FALSE, TRUE);  	unbound();  	setState(OBJECT_DIRTY); @@ -1397,14 +1380,12 @@ void LLSpatialGroup::handleInsertion(const TreeNode* node, LLDrawable* drawablep  void LLSpatialGroup::handleRemoval(const TreeNode* node, LLDrawable* drawable)  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  	removeObject(drawable, TRUE);  	setState(OBJECT_DIRTY);  }  void LLSpatialGroup::handleDestruction(const TreeNode* node)  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  	setState(DEAD);  	for (element_iter i = getDataBegin(); i != getDataEnd(); ++i) @@ -1446,7 +1427,6 @@ void LLSpatialGroup::handleStateChange(const TreeNode* node)  void LLSpatialGroup::handleChildAddition(const OctreeNode* parent, OctreeNode* child)   { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  	if (child->getListenerCount() == 0)  	{  		new LLSpatialGroup(child, mSpatialPartition); @@ -1792,7 +1772,6 @@ void LLSpatialGroup::doOcclusion(LLCamera* camera)  LLSpatialPartition::LLSpatialPartition(U32 data_mask, BOOL render_by_group, U32 buffer_usage)  : mRenderByGroup(render_by_group), mBridge(NULL)  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  	mOcclusionEnabled = TRUE;  	mDrawableType = 0;  	mPartitionType = LLViewerRegion::PARTITION_NONE; @@ -1816,8 +1795,6 @@ LLSpatialPartition::LLSpatialPartition(U32 data_mask, BOOL render_by_group, U32  LLSpatialPartition::~LLSpatialPartition()  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION); -	  	delete mOctree;  	mOctree = NULL;  } @@ -1825,8 +1802,6 @@ LLSpatialPartition::~LLSpatialPartition()  LLSpatialGroup *LLSpatialPartition::put(LLDrawable *drawablep, BOOL was_visible)  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION); -		  	drawablep->updateSpatialExtents();  	//keep drawable from being garbage collected @@ -1848,8 +1823,6 @@ LLSpatialGroup *LLSpatialPartition::put(LLDrawable *drawablep, BOOL was_visible)  BOOL LLSpatialPartition::remove(LLDrawable *drawablep, LLSpatialGroup *curp)  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION); -	  	if (!curp->removeObject(drawablep))  	{  		OCT_ERRS << "Failed to remove drawable from octree!" << llendl; @@ -1868,8 +1841,6 @@ BOOL LLSpatialPartition::remove(LLDrawable *drawablep, LLSpatialGroup *curp)  void LLSpatialPartition::move(LLDrawable *drawablep, LLSpatialGroup *curp, BOOL immediate)  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION); -		  	// sanity check submitted by open source user bushing Spatula  	// who was seeing crashing here. (See VWR-424 reported by Bunny Mayne)  	if (!drawablep) @@ -1926,7 +1897,6 @@ public:  void LLSpatialPartition::shift(const LLVector4a &offset)  { //shift octree node bounding boxes by offset -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  	LLSpatialShift shifter(offset);  	shifter.traverse(mOctree);  } @@ -2340,7 +2310,6 @@ public:  void LLSpatialPartition::restoreGL()  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  }  void LLSpatialPartition::resetVertexBuffers() @@ -2383,7 +2352,6 @@ BOOL LLSpatialPartition::visibleObjectsInFrustum(LLCamera& camera)  S32 LLSpatialPartition::cull(LLCamera &camera, std::vector<LLDrawable *>* results, BOOL for_select)  { -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);  #if LL_OCTREE_PARANOIA_CHECK  	((LLSpatialGroup*)mOctree->getListener(0))->checkStates();  #endif @@ -4438,8 +4406,6 @@ void LLSpatialPartition::renderDebug()  		sCurMaxTexPriority = 0.f;  	} -	LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION); -	  	LLGLDisable cullface(GL_CULL_FACE);  	LLGLEnable blend(GL_BLEND);  	gGL.setSceneBlendType(LLRender::BT_ALPHA); | 
