diff options
author | Dave Parks <davep@lindenlab.com> | 2012-05-30 13:22:04 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2012-05-30 13:22:04 -0500 |
commit | 2e26dc3971f80fb177c53bc20c06798bbe4391a6 (patch) | |
tree | c6db21d792451e8ea1717cddbfecc2346cda53f4 /indra/llrender/llvertexbuffer.cpp | |
parent | 8c5bf1d0bac65053469888c27523e6bf30ee53cf (diff) |
Minor instrumentation tweaks -- add a couple of asserts, a timer, and fix VBO accounting.
Diffstat (limited to 'indra/llrender/llvertexbuffer.cpp')
-rw-r--r-- | indra/llrender/llvertexbuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp index f4bf744e3c..2e7c8a0e8f 100644 --- a/indra/llrender/llvertexbuffer.cpp +++ b/indra/llrender/llvertexbuffer.cpp @@ -292,7 +292,7 @@ void LLVBOPool::seedPool() void LLVBOPool::cleanup() { - U32 size = 1; + U32 size = LL_VBO_BLOCK_SIZE; for (U32 i = 0; i < mFreeList.size(); ++i) { @@ -323,7 +323,7 @@ void LLVBOPool::cleanup() } } - size *= 2; + size += LL_VBO_BLOCK_SIZE; } //reset miss counts |