From 932a1321167814ab13a21121a9b9a8bf2eca1641 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 20 Feb 2008 00:08:04 +0000 Subject: * Made a quickupdate method to run through only entities that have scheduled themselves for updates looking for changes. This runs 10 times a second. * Set the massively slow UpdateEntities method to run every 2 seconds instead of 10 times a second. This method runs through *all* of the entities can calls the virtual update(). * Documented some of the code in the scene.Update method. --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 00cabf8..a522380 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -1079,6 +1079,7 @@ namespace OpenSim.Region.Environment.Scenes if (m_parentGroup != null) { m_parentGroup.HasGroupChanged = true; + m_parentGroup.QueueForUpdateCheck(); } TimeStampFull = (uint) Util.UnixTimeSinceEpoch(); m_updateFlag = 2; @@ -1120,9 +1121,11 @@ namespace OpenSim.Region.Environment.Scenes if (m_parentGroup != null) { m_parentGroup.HasGroupChanged = true; + m_parentGroup.QueueForUpdateCheck(); } TimeStampTerse = (uint) Util.UnixTimeSinceEpoch(); m_updateFlag = 1; + } } -- cgit v1.1