Save some CPU cycles by evaluating the product of 3 magic constants ourself

meow-7.2.2
Ansariel 2011-07-12 22:28:29 +02:00
parent 43ddef4215
commit 905fb5f8d1
1 changed files with 1 additions and 1 deletions

View File

@ -1223,7 +1223,7 @@ void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap)
}
}
F32 approx_radius = (scale.mV[VX] + scale.mV[VY]) * 0.5f * 0.5f * 1.3f; // 1.3 is a fudge
F32 approx_radius = (scale.mV[VX] + scale.mV[VY]) * 0.325; // <- 0.5f * 0.5f * 1.3f; // 1.3 is a fudge
// Limit the size of megaprims so they don't blot out everything on the minimap.
// Attempting to draw very large megaprims also causes client lag.