Speed up object param lookups.

This commit is contained in:
Shyotl
2019-08-07 21:27:53 -05:00
parent 21b1d5b52e
commit d2b28f60ff
12 changed files with 171 additions and 166 deletions

View File

@@ -674,6 +674,7 @@ void LLHUDText::reshape()
F32 LLHUDText::LLHUDTextSegment::getWidth(const LLFontGL* font)
{
// Singu note: Reworked hotspot. Less indirection
if (mFontWidthMap[0].first == font)
{
return mFontWidthMap[0].second;