summaryrefslogtreecommitdiff
path: root/indra/newview/llwlparamset.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-10-11 00:26:03 -0500
committerDave Parks <davep@lindenlab.com>2011-10-11 00:26:03 -0500
commit3211c6e3089b03d73f2e260be4037304660f834d (patch)
tree5ed0bb2ae02b44109a31786b0e9c6c3ac84d3490 /indra/newview/llwlparamset.cpp
parentcffcb414f57bcdc7de862d791f8f9c1fea91a7fb (diff)
SH-2240 WIP on removing lots of string comparisons that were added to deal with exploding amounts of non-built-in GL state
Diffstat (limited to 'indra/newview/llwlparamset.cpp')
-rw-r--r--indra/newview/llwlparamset.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llwlparamset.cpp b/indra/newview/llwlparamset.cpp
index 22fba90f65..4a1db3d26c 100644
--- a/indra/newview/llwlparamset.cpp
+++ b/indra/newview/llwlparamset.cpp
@@ -69,12 +69,16 @@ LLWLParamSet::LLWLParamSet(void) :
*/
}
+static LLFastTimer::DeclareTimer FTM_WL_PARAM_UPDATE("WL Param Update");
+
void LLWLParamSet::update(LLGLSLShader * shader) const
{
for(LLSD::map_const_iterator i = mParamValues.beginMap();
i != mParamValues.endMap();
++i)
{
+ LLFastTimer t(FTM_WL_PARAM_UPDATE);
+
const std::string& param = i->first;
if( param == "star_brightness" || param == "preset_num" || param == "sun_angle" ||