diff options
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 22 | ||||
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/llviewercontrol.cpp | 16 | ||||
-rw-r--r-- | linden/indra/newview/llvovolume.cpp | 19 | ||||
-rw-r--r-- | linden/indra/newview/llvovolume.h | 3 | ||||
-rw-r--r-- | linden/indra/newview/pipeline.cpp | 3 | ||||
-rw-r--r-- | linden/indra/newview/pipeline.h | 1 |
7 files changed, 2 insertions, 64 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index e03e1f3..74750a6 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -1097,28 +1097,6 @@ | |||
1097 | <key>Value</key> | 1097 | <key>Value</key> |
1098 | <integer>1</integer> | 1098 | <integer>1</integer> |
1099 | </map> | 1099 | </map> |
1100 | <key>RenderSculptSAMax</key> | ||
1101 | <map> | ||
1102 | <key>Comment</key> | ||
1103 | <string>The maximum combined surface area of sculpts(per frame) that are above the threshold before they stop being rendered</string> | ||
1104 | <key>Persist</key> | ||
1105 | <integer>1</integer> | ||
1106 | <key>Type</key> | ||
1107 | <string>F32</string> | ||
1108 | <key>Value</key> | ||
1109 | <integer>50000</integer> | ||
1110 | </map> | ||
1111 | <key>RenderSculptSAThreshold</key> | ||
1112 | <map> | ||
1113 | <key>Comment</key> | ||
1114 | <string>Surface area at which sculpts are considered for not being rendered</string> | ||
1115 | <key>Persist</key> | ||
1116 | <integer>1</integer> | ||
1117 | <key>Type</key> | ||
1118 | <string>F32</string> | ||
1119 | <key>Value</key> | ||
1120 | <integer>1750</integer> | ||
1121 | </map> | ||
1122 | <key>RenderWaterVoidCulling</key> | 1100 | <key>RenderWaterVoidCulling</key> |
1123 | <map> | 1101 | <map> |
1124 | <key>Comment</key> | 1102 | <key>Comment</key> |
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 519fa62..b96f6c2 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -422,8 +422,6 @@ static void settings_to_globals() | |||
422 | LLVOTree::sTreeFactor = gSavedSettings.getF32("RenderTreeLODFactor"); | 422 | LLVOTree::sTreeFactor = gSavedSettings.getF32("RenderTreeLODFactor"); |
423 | LLVOAvatar::sLODFactor = gSavedSettings.getF32("RenderAvatarLODFactor"); | 423 | LLVOAvatar::sLODFactor = gSavedSettings.getF32("RenderAvatarLODFactor"); |
424 | LLVOAvatar::sMaxVisible = gSavedSettings.getS32("RenderAvatarMaxVisible"); | 424 | LLVOAvatar::sMaxVisible = gSavedSettings.getS32("RenderAvatarMaxVisible"); |
425 | LLVOVolume::sSculptSAThresh = gSavedSettings.getF32("RenderSculptSAThreshold"); | ||
426 | LLVOVolume::sSculptSAMax = gSavedSettings.getF32("RenderSculptSAMax"); | ||
427 | LLVOAvatar::sVisibleInFirstPerson = gSavedSettings.getBOOL("FirstPersonAvatarVisible"); | 425 | LLVOAvatar::sVisibleInFirstPerson = gSavedSettings.getBOOL("FirstPersonAvatarVisible"); |
428 | // clamp auto-open time to some minimum usable value | 426 | // clamp auto-open time to some minimum usable value |
429 | LLFolderView::sAutoOpenTime = llmax(0.25f, gSavedSettings.getF32("FolderAutoOpenDelay")); | 427 | LLFolderView::sAutoOpenTime = llmax(0.25f, gSavedSettings.getF32("FolderAutoOpenDelay")); |
diff --git a/linden/indra/newview/llviewercontrol.cpp b/linden/indra/newview/llviewercontrol.cpp index 4c81e71..59d766f 100644 --- a/linden/indra/newview/llviewercontrol.cpp +++ b/linden/indra/newview/llviewercontrol.cpp | |||
@@ -530,18 +530,6 @@ bool handleSliderScrollWheelMultiplierChanged(const LLSD& newvalue) | |||
530 | return true; | 530 | return true; |
531 | } | 531 | } |
532 | 532 | ||
533 | bool handleRenderSculptSAThresholdChanged(const LLSD& newvalue) | ||
534 | { | ||
535 | LLVOVolume::sSculptSAThresh = newvalue.asReal(); | ||
536 | return true; | ||
537 | } | ||
538 | |||
539 | bool handleRenderSculptSAMaxChanged(const LLSD& newvalue) | ||
540 | { | ||
541 | LLVOVolume::sSculptSAMax = newvalue.asReal(); | ||
542 | return true; | ||
543 | } | ||
544 | |||
545 | 533 | ||
546 | //////////////////////////////////////////////////////////////////////////// | 534 | //////////////////////////////////////////////////////////////////////////// |
547 | 535 | ||
@@ -687,9 +675,7 @@ void settings_setup_listeners() | |||
687 | gSavedSettings.getControl("AudioLevelMic")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); | 675 | gSavedSettings.getControl("AudioLevelMic")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); |
688 | gSavedSettings.getControl("LipSyncEnabled")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); | 676 | gSavedSettings.getControl("LipSyncEnabled")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); |
689 | gSavedSettings.getControl("SliderScrollWheelMultiplier")->getSignal()->connect(boost::bind(&handleSliderScrollWheelMultiplierChanged, _1)); | 677 | gSavedSettings.getControl("SliderScrollWheelMultiplier")->getSignal()->connect(boost::bind(&handleSliderScrollWheelMultiplierChanged, _1)); |
690 | gSavedSettings.getControl("TranslateChat")->getSignal()->connect(boost::bind(&handleTranslateChatPrefsChanged, _1)); | 678 | gSavedSettings.getControl("TranslateChat")->getSignal()->connect(boost::bind(&handleTranslateChatPrefsChanged, _1)); |
691 | gSavedSettings.getControl("RenderSculptSAThreshold")->getSignal()->connect(boost::bind(&handleRenderSculptSAThresholdChanged, _1)); | ||
692 | gSavedSettings.getControl("RenderSculptSAMax")->getSignal()->connect(boost::bind(&handleRenderSculptSAMaxChanged, _1)); | ||
693 | } | 679 | } |
694 | 680 | ||
695 | template <> eControlType get_control_type<U32>(const U32& in, LLSD& out) | 681 | template <> eControlType get_control_type<U32>(const U32& in, LLSD& out) |
diff --git a/linden/indra/newview/llvovolume.cpp b/linden/indra/newview/llvovolume.cpp index b422c51..d580d61 100644 --- a/linden/indra/newview/llvovolume.cpp +++ b/linden/indra/newview/llvovolume.cpp | |||
@@ -79,9 +79,6 @@ F32 LLVOVolume::sLODFactor = 1.f; | |||
79 | F32 LLVOVolume::sLODSlopDistanceFactor = 0.5f; //Changing this to zero, effectively disables the LOD transition slop | 79 | F32 LLVOVolume::sLODSlopDistanceFactor = 0.5f; //Changing this to zero, effectively disables the LOD transition slop |
80 | F32 LLVOVolume::sDistanceFactor = 1.0f; | 80 | F32 LLVOVolume::sDistanceFactor = 1.0f; |
81 | S32 LLVOVolume::sNumLODChanges = 0; | 81 | S32 LLVOVolume::sNumLODChanges = 0; |
82 | F32 LLVOVolume::sSculptSAThresh = 1750.f; | ||
83 | F32 LLVOVolume::sSculptSAMax = 50000.f; | ||
84 | |||
85 | 82 | ||
86 | LLVOVolume::LLVOVolume(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp) | 83 | LLVOVolume::LLVOVolume(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp) |
87 | : LLViewerObject(id, pcode, regionp), | 84 | : LLViewerObject(id, pcode, regionp), |
@@ -709,7 +706,7 @@ BOOL LLVOVolume::setVolume(const LLVolumeParams &volume_params, const S32 detail | |||
709 | } | 706 | } |
710 | else | 707 | else |
711 | { | 708 | { |
712 | mSculptSurfaceArea = 0.0; | 709 | mSculptSurfaceArea = 0.f; |
713 | } | 710 | } |
714 | 711 | ||
715 | return TRUE; | 712 | return TRUE; |
@@ -2322,20 +2319,6 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group) | |||
2322 | LLVOVolume* vobj = drawablep->getVOVolume(); | 2319 | LLVOVolume* vobj = drawablep->getVOVolume(); |
2323 | 2320 | ||
2324 | llassert_always(vobj); | 2321 | llassert_always(vobj); |
2325 | |||
2326 | if (vobj->isSculpted() && vobj->mSculptSurfaceArea > LLVOVolume::sSculptSAThresh) | ||
2327 | { | ||
2328 | LLPipeline::sSculptSurfaceAreaFrame += vobj->mSculptSurfaceArea; | ||
2329 | if (LLPipeline::sSculptSurfaceAreaFrame > LLVOVolume::sSculptSAMax) | ||
2330 | { | ||
2331 | LL_DEBUGS("Volume") << "Sculptie (" | ||
2332 | << vobj->getID() << ") above RenderSculptSAMax (" | ||
2333 | << LLVOVolume::sSculptSAMax | ||
2334 | << ")! Turning invisible!" | ||
2335 | << LL_ENDL; | ||
2336 | continue; | ||
2337 | } | ||
2338 | } | ||
2339 | 2322 | ||
2340 | vobj->updateTextureVirtualSize(); | 2323 | vobj->updateTextureVirtualSize(); |
2341 | vobj->preRebuild(); | 2324 | vobj->preRebuild(); |
diff --git a/linden/indra/newview/llvovolume.h b/linden/indra/newview/llvovolume.h index 2f53bea..d09a198 100644 --- a/linden/indra/newview/llvovolume.h +++ b/linden/indra/newview/llvovolume.h | |||
@@ -248,9 +248,6 @@ public: | |||
248 | static F32 sLODSlopDistanceFactor;// Changing this to zero, effectively disables the LOD transition slop | 248 | static F32 sLODSlopDistanceFactor;// Changing this to zero, effectively disables the LOD transition slop |
249 | static F32 sLODFactor; // LOD scale factor | 249 | static F32 sLODFactor; // LOD scale factor |
250 | static F32 sDistanceFactor; // LOD distance factor | 250 | static F32 sDistanceFactor; // LOD distance factor |
251 | static F32 sSculptSAThresh; // Surface area at which sculpts are considered for not being rendered | ||
252 | static F32 sSculptSAMax; // The maximum combined surface area of sculpts(per frame) that are above the | ||
253 | // threshold before they stop being rendered | ||
254 | 251 | ||
255 | protected: | 252 | protected: |
256 | static S32 sNumLODChanges; | 253 | static S32 sNumLODChanges; |
diff --git a/linden/indra/newview/pipeline.cpp b/linden/indra/newview/pipeline.cpp index ae0e605..cd9b3be 100644 --- a/linden/indra/newview/pipeline.cpp +++ b/linden/indra/newview/pipeline.cpp | |||
@@ -258,7 +258,6 @@ BOOL LLPipeline::sRenderAttachedLights = TRUE; | |||
258 | BOOL LLPipeline::sRenderAttachedParticles = TRUE; | 258 | BOOL LLPipeline::sRenderAttachedParticles = TRUE; |
259 | BOOL LLPipeline::sRenderDeferred = FALSE; | 259 | BOOL LLPipeline::sRenderDeferred = FALSE; |
260 | S32 LLPipeline::sVisibleLightCount = 0; | 260 | S32 LLPipeline::sVisibleLightCount = 0; |
261 | F32 LLPipeline::sSculptSurfaceAreaFrame = 0.0; | ||
262 | 261 | ||
263 | static LLCullResult* sCull = NULL; | 262 | static LLCullResult* sCull = NULL; |
264 | 263 | ||
@@ -2199,8 +2198,6 @@ void LLPipeline::postSort(LLCamera& camera) | |||
2199 | LLFastTimer ftm(LLFastTimer::FTM_STATESORT_POSTSORT); | 2198 | LLFastTimer ftm(LLFastTimer::FTM_STATESORT_POSTSORT); |
2200 | 2199 | ||
2201 | assertInitialized(); | 2200 | assertInitialized(); |
2202 | |||
2203 | sSculptSurfaceAreaFrame = 0.0; | ||
2204 | 2201 | ||
2205 | //rebuild drawable geometry | 2202 | //rebuild drawable geometry |
2206 | for (LLCullResult::sg_list_t::iterator i = sCull->beginDrawableGroups(); i != sCull->endDrawableGroups(); ++i) | 2203 | for (LLCullResult::sg_list_t::iterator i = sCull->beginDrawableGroups(); i != sCull->endDrawableGroups(); ++i) |
diff --git a/linden/indra/newview/pipeline.h b/linden/indra/newview/pipeline.h index 2252fbd..c5ab7ab 100644 --- a/linden/indra/newview/pipeline.h +++ b/linden/indra/newview/pipeline.h | |||
@@ -579,7 +579,6 @@ protected: | |||
579 | public: | 579 | public: |
580 | static BOOL sRenderBeacons; | 580 | static BOOL sRenderBeacons; |
581 | static BOOL sRenderHighlight; | 581 | static BOOL sRenderHighlight; |
582 | static F32 sSculptSurfaceAreaFrame; | ||
583 | 582 | ||
584 | }; | 583 | }; |
585 | 584 | ||