summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-03-28 16:31:49 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-03-28 16:31:49 -0600
commit5334c15852b0669be74546d4fa11c58a279dda2d (patch)
tree043b13ebbc5d7ace6b478d7333fa597bdb1c6f5f /indra
parentaad93f4e52a745892612dee89ba72935e49dd099 (diff)
change scene loading monitor frame diff filter threshold value.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llscenemonitor.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/indra/newview/llscenemonitor.cpp b/indra/newview/llscenemonitor.cpp
index 5cde573855..8655aa4521 100644
--- a/indra/newview/llscenemonitor.cpp
+++ b/indra/newview/llscenemonitor.cpp
@@ -483,15 +483,18 @@ void LLSceneMonitor::fetchQueryResult()
glGetQueryObjectuivARB(mQueryObject, GL_QUERY_RESULT_ARB, &count);
mDiffResult = count * 0.5f / (mDiff->getWidth() * mDiff->getHeight() * mDiffPixelRatio * mDiffPixelRatio); //0.5 -> (front face + back face)
-
- if(mDiffResult > 0.01f)
- {
- addMonitorResult();
- }
+
+ addMonitorResult();
}
void LLSceneMonitor::addMonitorResult()
{
+ const F32 diff_threshold = 0.001f;
+ if(mDiffResult < diff_threshold)
+ {
+ return;
+ }
+
mRecording->extend();
sample(sFramePixelDiff, mDiffResult);