From 14f4622c3b836caafea64a260a00a5f5a9f103f9 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Fri, 8 Jul 2011 14:48:05 -0700 Subject: Added debug settings RenderSculptSAThreshold and RenderSculptSAMax. Adjust these if sculpties ever go invisible that shouldn't --- linden/indra/newview/llvovolume.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'linden/indra/newview/llvovolume.cpp') diff --git a/linden/indra/newview/llvovolume.cpp b/linden/indra/newview/llvovolume.cpp index 77201da..d40ee99 100644 --- a/linden/indra/newview/llvovolume.cpp +++ b/linden/indra/newview/llvovolume.cpp @@ -71,10 +71,6 @@ const S32 MIN_QUIET_FRAMES_COALESCE = 30; const F32 FORCE_SIMPLE_RENDER_AREA = 512.f; const F32 FORCE_CULL_AREA = 8.f; - -static const F32 sSculptSAThresh = 1750.f; // Surface area at which sculpts are considered for not being rendered -static const F32 sSculptSAMax = 50000.f; // The maximum combined surface area of sculpts(per frame) that are above the - // threshold before they stop being rendered BOOL gAnimateTextures = TRUE; extern BOOL gHideSelectedObjects; @@ -83,6 +79,9 @@ F32 LLVOVolume::sLODFactor = 1.f; F32 LLVOVolume::sLODSlopDistanceFactor = 0.5f; //Changing this to zero, effectively disables the LOD transition slop F32 LLVOVolume::sDistanceFactor = 1.0f; S32 LLVOVolume::sNumLODChanges = 0; +F32 LLVOVolume::sSculptSAThresh = 1750.f; +F32 LLVOVolume::sSculptSAMax = 50000.f; + LLVOVolume::LLVOVolume(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp) : LLViewerObject(id, pcode, regionp), @@ -2310,14 +2309,14 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group) llassert_always(vobj); - if (vobj->isSculpted() && vobj->mSculptSurfaceArea > sSculptSAThresh) + if (vobj->isSculpted() && vobj->mSculptSurfaceArea > LLVOVolume::sSculptSAThresh) { LLPipeline::sSculptSurfaceAreaFrame += vobj->mSculptSurfaceArea; - if (LLPipeline::sSculptSurfaceAreaFrame > sSculptSAMax) + if (LLPipeline::sSculptSurfaceAreaFrame > LLVOVolume::sSculptSAMax) { LL_DEBUGS("Volume") << "Sculptie (" << vobj->getID() << ") above RenderSculptSAMax (" - << sSculptSAMax + << LLVOVolume::sSculptSAMax << ")! Turning invisible!" << LL_ENDL; continue; -- cgit v1.1