save a sqrt call
parent
dd67ab6025
commit
282877a454
|
@ -490,7 +490,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
private bool ShouldSendDiscardableEffect(IClientAPI thisClient, ScenePresence other)
|
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
|
private class DescendentsRequestData
|
||||||
|
|
Loading…
Reference in New Issue