save a sqrt call

0.9.1.0-post-fixes
UbitUmarov 2018-07-14 16:47:51 +01:00
parent dd67ab6025
commit 282877a454
1 changed files with 3 additions and 3 deletions

View File

@ -490,7 +490,7 @@ namespace OpenSim.Region.Framework.Scenes
private bool ShouldSendDiscardableEffect(IClientAPI thisClient, ScenePresence other)
{
return Vector3.Distance(other.CameraPosition, thisClient.SceneAgent.AbsolutePosition) < 10;
return Vector3.DistanceSquared(other.CameraPosition, thisClient.SceneAgent.AbsolutePosition) < 100;
}
private class DescendentsRequestData