From 905fb5f8d14ea0846abcbd688bcabf2e66e6f93d Mon Sep 17 00:00:00 2001 From: Ansariel Date: Tue, 12 Jul 2011 22:28:29 +0200 Subject: [PATCH] Save some CPU cycles by evaluating the product of 3 magic constants ourself --- indra/newview/llviewerobjectlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp index 80b30d0e1e..047c22ce64 100644 --- a/indra/newview/llviewerobjectlist.cpp +++ b/indra/newview/llviewerobjectlist.cpp @@ -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.