summaryrefslogtreecommitdiff
path: root/indra/newview/llscenemonitor.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2013-04-12 15:56:49 -0700
committerRichard Linden <none@none>2013-04-12 15:56:49 -0700
commit06a953f7fece6e7c5cb8f9facd246580767f8591 (patch)
tree18e0db8a706d6451ebad1ab640871a3ca0f52d1c /indra/newview/llscenemonitor.cpp
parent39d8ea6327ad96b4977dfec991a20d66e2442b50 (diff)
parentdea70426a5c96957dd73b7a50c7fdedf77a3bdfb (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.cpp10
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
}