diff options
author | Dave Parks <davep@lindenlab.com> | 2012-05-15 16:42:04 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2012-05-15 16:42:04 -0500 |
commit | 89b0b6ac7198653d989dea78ee1c3d3f4f61161f (patch) | |
tree | 03184fb7c5723a766182a2fcfa0b86340e3761e1 /indra/newview/pipeline.cpp | |
parent | f1f9b1c3b73b245fef3c976a9a1d71009bdbf3e0 (diff) |
MAINT-616 Different VBO Pooling scheme -- populate VBO pool with buffers that are likely to be requested, but never reuse a previously used buffer.
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r-- | indra/newview/pipeline.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 34dd15c9a1..a691302cb9 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -2450,6 +2450,8 @@ BOOL LLPipeline::updateDrawableGeom(LLDrawable* drawablep, BOOL priority) return update_complete; } +static LLFastTimer::DeclareTimer FTM_SEED_VBO_POOLS("Seed VBO Pool"); + void LLPipeline::updateGL() { while (!LLGLUpdate::sGLQ.empty()) @@ -2459,6 +2461,11 @@ void LLPipeline::updateGL() glu->mInQ = FALSE; LLGLUpdate::sGLQ.pop_front(); } + + { //seed VBO Pools + LLFastTimer t(FTM_SEED_VBO_POOLS); + LLVertexBuffer::seedPools(); + } } void LLPipeline::rebuildPriorityGroups() |