reduce sampling of camera raycasts to previus value
parent
d5066ae678
commit
1bf553fd65
|
@ -1538,7 +1538,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// Raycast from the avatar's head to the camera to see if there's anything blocking the view
|
// Raycast from the avatar's head to the camera to see if there's anything blocking the view
|
||||||
// this exclude checks may not be complete
|
// this exclude checks may not be complete
|
||||||
|
|
||||||
if (!m_doingCamRayCast && !m_mouseLook && m_scene.PhysicsScene.SupportsRayCast() && ParentID == 0)
|
if (m_movementUpdateCount % NumMovementsBetweenRayCast == 0 && m_scene.PhysicsScene.SupportsRayCast())
|
||||||
|
{
|
||||||
|
if (!m_doingCamRayCast && !m_mouseLook && ParentID == 0)
|
||||||
{
|
{
|
||||||
Vector3 posAdjusted = AbsolutePosition;
|
Vector3 posAdjusted = AbsolutePosition;
|
||||||
posAdjusted.Z += 0.5f * Appearance.AvatarSize.Z - 0.5f;
|
posAdjusted.Z += 0.5f * Appearance.AvatarSize.Z - 0.5f;
|
||||||
|
@ -1566,6 +1568,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
UpdateCameraCollisionPlane(plane);
|
UpdateCameraCollisionPlane(plane);
|
||||||
CameraConstraintActive = false;
|
CameraConstraintActive = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
uint flagsForScripts = (uint)flags;
|
uint flagsForScripts = (uint)flags;
|
||||||
flags = RemoveIgnoredControls(flags, IgnoredControls);
|
flags = RemoveIgnoredControls(flags, IgnoredControls);
|
||||||
|
|
Loading…
Reference in New Issue