From 5334c15852b0669be74546d4fa11c58a279dda2d Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Thu, 28 Mar 2013 16:31:49 -0600 Subject: change scene loading monitor frame diff filter threshold value. --- indra/newview/llscenemonitor.cpp | 13 ++++++++----- 1 file 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); -- cgit v1.2.3