diff options
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llscenemonitor.cpp | 13 |
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); |