aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-08-26 11:04:43 -0700
committerMcCabe Maxsted2010-09-25 08:35:35 -0700
commitdb9616811d45e168d81c8e464fb8a9cf27e51172 (patch)
treea8539baeb46297d51072285d946f925a8544eb64 /linden/indra/newview/pipeline.cpp
parentRevert "Updated boost 1.36 libs for Windows to support local textures (todo: ... (diff)
downloadmeta-impy-db9616811d45e168d81c8e464fb8a9cf27e51172.zip
meta-impy-db9616811d45e168d81c8e464fb8a9cf27e51172.tar.gz
meta-impy-db9616811d45e168d81c8e464fb8a9cf27e51172.tar.bz2
meta-impy-db9616811d45e168d81c8e464fb8a9cf27e51172.tar.xz
Ported gSavedSettings changes from Emerald (as well as modifying a few of ours)
Diffstat (limited to 'linden/indra/newview/pipeline.cpp')
-rw-r--r--linden/indra/newview/pipeline.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/linden/indra/newview/pipeline.cpp b/linden/indra/newview/pipeline.cpp
index e024e4c..0ca94dc 100644
--- a/linden/indra/newview/pipeline.cpp
+++ b/linden/indra/newview/pipeline.cpp
@@ -1014,8 +1014,8 @@ U32 LLPipeline::addObject(LLViewerObject *vobj)
1014 { 1014 {
1015 return 0; 1015 return 0;
1016 } 1016 }
1017 1017 static BOOL sRenderDelayCreation = gSavedSettings.getBOOL("RenderDelayCreation");
1018 if (gSavedSettings.getBOOL("RenderDelayCreation")) 1018 if (sRenderDelayCreation)
1019 { 1019 {
1020 mCreateQ.push_back(vobj); 1020 mCreateQ.push_back(vobj);
1021 } 1021 }
@@ -1078,7 +1078,9 @@ void LLPipeline::createObject(LLViewerObject* vobj)
1078 1078
1079 markRebuild(drawablep, LLDrawable::REBUILD_ALL, TRUE); 1079 markRebuild(drawablep, LLDrawable::REBUILD_ALL, TRUE);
1080 1080
1081 if (drawablep->getVOVolume() && gSavedSettings.getBOOL("RenderAnimateRes")) 1081 static BOOL sRenderAnimateRes = gSavedSettings.getBOOL("RenderAnimateRes");
1082
1083 if (drawablep->getVOVolume() && sRenderAnimateRes)
1082 { 1084 {
1083 // fun animated res 1085 // fun animated res
1084 drawablep->updateXform(TRUE); 1086 drawablep->updateXform(TRUE);
@@ -1117,7 +1119,8 @@ void LLPipeline::resetFrameStats()
1117//external functions for asynchronous updating 1119//external functions for asynchronous updating
1118void LLPipeline::updateMoveDampedAsync(LLDrawable* drawablep) 1120void LLPipeline::updateMoveDampedAsync(LLDrawable* drawablep)
1119{ 1121{
1120 if (gSavedSettings.getBOOL("FreezeTime")) 1122 static BOOL* sFreezeTime = rebind_llcontrol<BOOL>("FreezeTime", &gSavedSettings, true);
1123 if ((*sFreezeTime))
1121 { 1124 {
1122 return; 1125 return;
1123 } 1126 }
@@ -1147,7 +1150,8 @@ void LLPipeline::updateMoveDampedAsync(LLDrawable* drawablep)
1147 1150
1148void LLPipeline::updateMoveNormalAsync(LLDrawable* drawablep) 1151void LLPipeline::updateMoveNormalAsync(LLDrawable* drawablep)
1149{ 1152{
1150 if (gSavedSettings.getBOOL("FreezeTime")) 1153 static BOOL* sFreezeTime = rebind_llcontrol<BOOL>("FreezeTime", &gSavedSettings, true);
1154 if ((*sFreezeTime))
1151 { 1155 {
1152 return; 1156 return;
1153 } 1157 }
@@ -1200,7 +1204,8 @@ void LLPipeline::updateMove()
1200 LLFastTimer t(LLFastTimer::FTM_UPDATE_MOVE); 1204 LLFastTimer t(LLFastTimer::FTM_UPDATE_MOVE);
1201 LLMemType mt(LLMemType::MTYPE_PIPELINE); 1205 LLMemType mt(LLMemType::MTYPE_PIPELINE);
1202 1206
1203 if (gSavedSettings.getBOOL("FreezeTime")) 1207 static BOOL* sFreezeTime = rebind_llcontrol<BOOL>("FreezeTime", &gSavedSettings, true);
1208 if ((*sFreezeTime))
1204 { 1209 {
1205 return; 1210 return;
1206 } 1211 }
@@ -2295,8 +2300,10 @@ void LLPipeline::postSort(LLCamera& camera)
2295 std::sort(sCull->beginAlphaGroups(), sCull->endAlphaGroups(), LLSpatialGroup::CompareDepthGreater()); 2300 std::sort(sCull->beginAlphaGroups(), sCull->endAlphaGroups(), LLSpatialGroup::CompareDepthGreater());
2296 } 2301 }
2297 2302
2303 static BOOL* sBeaconsEnabled = rebind_llcontrol<BOOL>("BeaconsEnabled", &gSavedSettings, true);
2304
2298 // only render if the flag is set. The flag is only set if we are in edit mode or the toggle is set in the menus 2305 // only render if the flag is set. The flag is only set if we are in edit mode or the toggle is set in the menus
2299 if (gSavedSettings.getBOOL("BeaconsEnabled") && !sShadowRender) 2306 if (*sBeaconsEnabled && !sShadowRender)
2300 { 2307 {
2301 if (sRenderScriptedTouchBeacons) 2308 if (sRenderScriptedTouchBeacons)
2302 { 2309 {