summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-09-28 16:51:12 -0500
committerDave Parks <davep@lindenlab.com>2011-09-28 16:51:12 -0500
commite43f4dc31b40e588805e06f4c503e0387687a08e (patch)
tree949ded11b29e5f0e59f996777eb152f845392ee9 /indra/newview
parent4dd533a5871fd5bbb0ea084679da9f0a856d41c5 (diff)
SH-2276 Add some info around a possible deadlock culprit.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llvowlsky.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llvowlsky.cpp b/indra/newview/llvowlsky.cpp
index c26aefb28f..14fd0a1eb1 100644
--- a/indra/newview/llvowlsky.cpp
+++ b/indra/newview/llvowlsky.cpp
@@ -349,6 +349,9 @@ BOOL LLVOWLSky::updateGeometry(LLDrawable * drawable)
mStripsVerts.resize(strips_segments, NULL);
+ LLTimer timer;
+ timer.start();
+
for (U32 i = 0; i < strips_segments ;++i)
{
LLVertexBuffer * segment = new LLVertexBuffer(LLDrawPoolWLSky::SKY_VERTEX_DATA_MASK, GL_STATIC_DRAW_ARB);
@@ -390,6 +393,8 @@ BOOL LLVOWLSky::updateGeometry(LLDrawable * drawable)
// and unlock the buffer
segment->flush();
}
+
+ llinfos << "completed in " << llformat("%.2f", timer.getElapsedTimeF32()) << "seconds" << llendl;
}
#else
mStripsVerts = new LLVertexBuffer(LLDrawPoolWLSky::SKY_VERTEX_DATA_MASK, GL_STATIC_DRAW_ARB);