diff options
author | Dave Parks <davep@lindenlab.com> | 2023-01-09 15:18:57 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2023-01-09 15:18:57 -0600 |
commit | a710bf9067bd4c4217b9febc0ad277a1636ec882 (patch) | |
tree | df6b4105f0e7d518f8fecfe3ab654f17abd1ac7c /indra/newview/lldrawpoolbump.cpp | |
parent | b3fc82ff1da0c869f0b1dd841647a120a1ae56af (diff) |
SL-18869 Optimizations -- Use _mm_prefetch to cut down on cache misses when iterating over render batches.
Diffstat (limited to 'indra/newview/lldrawpoolbump.cpp')
-rw-r--r-- | indra/newview/lldrawpoolbump.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp index 6af4e2274c..4379fdc603 100644 --- a/indra/newview/lldrawpoolbump.cpp +++ b/indra/newview/lldrawpoolbump.cpp @@ -724,10 +724,12 @@ void LLDrawPoolBump::renderDeferred(S32 pass) LLVOAvatar* avatar = nullptr; U64 skin = 0; - for (LLCullResult::drawinfo_iterator i = begin; i != end; ++i) + for (LLCullResult::drawinfo_iterator i = begin; i != end; ) { LLDrawInfo& params = **i; + LLCullResult::increment_iterator(i, end); + LLGLSLShader::sCurBoundShaderPtr->setMinimumAlpha(params.mAlphaMaskCutoff); LLDrawPoolBump::bindBumpMap(params, bump_channel); |