diff options
author | Richard Linden <none@none> | 2013-04-12 14:27:25 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-04-12 14:27:25 -0700 |
commit | 1ddad3737977b9e750c4d1815ea99b51e75f18aa (patch) | |
tree | 140d51925a3cd2fbca3677ff293fc2d37b051759 /indra/newview/llscenemonitor.cpp | |
parent | 54d7fc95893d1bf8cc3b6ebe94f3bf37f40125d0 (diff) | |
parent | 8db22a591645a3a7c3308827ca819bc2415692d8 (diff) |
Automated merge with ssh://hg.lindenlab.com/richard/viewer-interesting-metrics
Diffstat (limited to 'indra/newview/llscenemonitor.cpp')
-rw-r--r-- | indra/newview/llscenemonitor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/newview/llscenemonitor.cpp b/indra/newview/llscenemonitor.cpp index 3a2171a014..15fe77f028 100644 --- a/indra/newview/llscenemonitor.cpp +++ b/indra/newview/llscenemonitor.cpp @@ -499,7 +499,7 @@ 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) - + addMonitorResult(); } @@ -511,19 +511,19 @@ void LLSceneMonitor::addMonitorResult() return; } - mRecording->extend(); - sample(sFramePixelDiff, mDiffResult); + mRecording->extend(); + sample(sFramePixelDiff, mDiffResult); ll_monitor_result_t result; result.mTimeStamp = LLImageGL::sLastFrameTime; result.mDiff = mDiffResult; mMonitorResults.push_back(result); -} + } //dump results to a file _scene_monitor_results.csv void LLSceneMonitor::dumpToFile(std::string file_name) { - if(mMonitorResults.empty()) + if(mMonitorResults.empty() || !getRecording()) { return; //nothing to dump } |