aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs34
-rw-r--r--OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs12
2 files changed, 5 insertions, 41 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 826cda1..bc2630f 100755
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -258,11 +258,6 @@ namespace OpenSim.Region.Framework.Scenes
258 public bool m_useTrashOnDelete = true; 258 public bool m_useTrashOnDelete = true;
259 259
260 /// <summary> 260 /// <summary>
261 /// Temporarily setting to trigger appearance resends at 60 second intervals.
262 /// </summary>
263 public bool SendPeriodicAppearanceUpdates { get; set; }
264
265 /// <summary>
266 /// How much a root agent has to change position before updates are sent to viewers. 261 /// How much a root agent has to change position before updates are sent to viewers.
267 /// </summary> 262 /// </summary>
268 public float RootPositionUpdateTolerance { get; set; } 263 public float RootPositionUpdateTolerance { get; set; }
@@ -1147,17 +1142,6 @@ namespace OpenSim.Region.Framework.Scenes
1147 1142
1148 } 1143 }
1149 1144
1150
1151 // FIXME: Ultimately this should be in a module.
1152 SendPeriodicAppearanceUpdates = false;
1153
1154 IConfig appearanceConfig = m_config.Configs["Appearance"];
1155 if (appearanceConfig != null)
1156 {
1157 SendPeriodicAppearanceUpdates
1158 = appearanceConfig.GetBoolean("ResendAppearanceUpdates", SendPeriodicAppearanceUpdates);
1159 }
1160
1161 #endregion Region Config 1145 #endregion Region Config
1162 1146
1163 IConfig entityTransferConfig = m_config.Configs["EntityTransfer"]; 1147 IConfig entityTransferConfig = m_config.Configs["EntityTransfer"];
@@ -1715,16 +1699,7 @@ namespace OpenSim.Region.Framework.Scenes
1715 }); 1699 });
1716 } 1700 }
1717 1701
1718 if (SendPeriodicAppearanceUpdates && MaintenanceRun % 60 == 0) 1702/* this is done on heartbeat
1719 {
1720 // m_log.DebugFormat("[SCENE]: Sending periodic appearance updates");
1721
1722 if (AvatarFactory != null)
1723 {
1724 ForEachRootScenePresence(sp => AvatarFactory.SendAppearance(sp.UUID));
1725 }
1726 }
1727
1728 // Delete temp-on-rez stuff 1703 // Delete temp-on-rez stuff
1729 if (MaintenanceRun % m_update_temp_cleaning == 0 && !m_cleaningTemps) 1704 if (MaintenanceRun % m_update_temp_cleaning == 0 && !m_cleaningTemps)
1730 { 1705 {
@@ -1739,7 +1714,7 @@ namespace OpenSim.Region.Framework.Scenes
1739 1714
1740 tempOnRezMS = Util.EnvironmentTickCountSubtract(tmpMS); 1715 tempOnRezMS = Util.EnvironmentTickCountSubtract(tmpMS);
1741 } 1716 }
1742 1717*/
1743 Watchdog.UpdateThread(); 1718 Watchdog.UpdateThread();
1744 1719
1745 previousMaintenanceTick = m_lastMaintenanceTick; 1720 previousMaintenanceTick = m_lastMaintenanceTick;
@@ -1864,7 +1839,8 @@ namespace OpenSim.Region.Framework.Scenes
1864 if (Frame % m_update_temp_cleaning == 0 && !m_cleaningTemps) 1839 if (Frame % m_update_temp_cleaning == 0 && !m_cleaningTemps)
1865 { 1840 {
1866 m_cleaningTemps = true; 1841 m_cleaningTemps = true;
1867 Util.FireAndForget(delegate { CleanTempObjects(); m_cleaningTemps = false; }); 1842 WorkManager.RunInThread(
1843 delegate { CleanTempObjects(); m_cleaningTemps = false; }, null, string.Format("CleanTempObjects ({0})", Name));
1868 tmpMS2 = Util.GetTimeStampMS(); 1844 tmpMS2 = Util.GetTimeStampMS();
1869 tempOnRezMS = (float)(tmpMS2 - tmpMS); // bad.. counts the FireAndForget, not CleanTempObjects 1845 tempOnRezMS = (float)(tmpMS2 - tmpMS); // bad.. counts the FireAndForget, not CleanTempObjects
1870 tmpMS = tmpMS2; 1846 tmpMS = tmpMS2;
@@ -2091,7 +2067,7 @@ namespace OpenSim.Region.Framework.Scenes
2091 if (!m_backingup) 2067 if (!m_backingup)
2092 { 2068 {
2093 m_backingup = true; 2069 m_backingup = true;
2094 WorkManager.RunInThread(o => Backup(false), null, string.Format("BackupWaitCallback ({0})", Name)); 2070 WorkManager.RunInThread(o => Backup(false), null, string.Format("BackupWorker ({0})", Name));
2095 } 2071 }
2096 } 2072 }
2097 2073
diff --git a/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs b/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs
index d0d726c..45edbda 100644
--- a/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs
+++ b/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs
@@ -96,7 +96,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
96 "List current scene options.", 96 "List current scene options.",
97 "active - if false then main scene update and maintenance loops are suspended.\n" 97 "active - if false then main scene update and maintenance loops are suspended.\n"
98 + "animations - if true then extra animations debug information is logged.\n" 98 + "animations - if true then extra animations debug information is logged.\n"
99 + "appear-refresh - if true then appearance is resent to other avatars every 60 seconds.\n"
100 + "client-pos-upd - the tolerance before clients are updated with new rotation information for an avatar.\n" 99 + "client-pos-upd - the tolerance before clients are updated with new rotation information for an avatar.\n"
101 + "client-rot-upd - the tolerance before clients are updated with new rotation information for an avatar.\n" 100 + "client-rot-upd - the tolerance before clients are updated with new rotation information for an avatar.\n"
102 + "client-vel-upd - the tolerance before clients are updated with new velocity information for an avatar.\n" 101 + "client-vel-upd - the tolerance before clients are updated with new velocity information for an avatar.\n"
@@ -117,7 +116,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
117 "Turn on scene debugging options.", 116 "Turn on scene debugging options.",
118 "active - if false then main scene update and maintenance loops are suspended.\n" 117 "active - if false then main scene update and maintenance loops are suspended.\n"
119 + "animations - if true then extra animations debug information is logged.\n" 118 + "animations - if true then extra animations debug information is logged.\n"
120 + "appear-refresh - if true then appearance is resent to other avatars every 60 seconds.\n"
121 + "client-pos-upd - the tolerance before clients are updated with new rotation information for an avatar.\n" 119 + "client-pos-upd - the tolerance before clients are updated with new rotation information for an avatar.\n"
122 + "client-rot-upd - the tolerance before clients are updated with new rotation information for an avatar.\n" 120 + "client-rot-upd - the tolerance before clients are updated with new rotation information for an avatar.\n"
123 + "client-vel-upd - the tolerance before clients are updated with new velocity information for an avatar.\n" 121 + "client-vel-upd - the tolerance before clients are updated with new velocity information for an avatar.\n"
@@ -153,7 +151,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
153 ConsoleDisplayList cdl = new ConsoleDisplayList(); 151 ConsoleDisplayList cdl = new ConsoleDisplayList();
154 cdl.AddRow("active", m_scene.Active); 152 cdl.AddRow("active", m_scene.Active);
155 cdl.AddRow("animations", m_scene.DebugAnimations); 153 cdl.AddRow("animations", m_scene.DebugAnimations);
156 cdl.AddRow("appear-refresh", m_scene.SendPeriodicAppearanceUpdates);
157 cdl.AddRow("client-pos-upd", m_scene.RootPositionUpdateTolerance); 154 cdl.AddRow("client-pos-upd", m_scene.RootPositionUpdateTolerance);
158 cdl.AddRow("client-rot-upd", m_scene.RootRotationUpdateTolerance); 155 cdl.AddRow("client-rot-upd", m_scene.RootRotationUpdateTolerance);
159 cdl.AddRow("client-vel-upd", m_scene.RootVelocityUpdateTolerance); 156 cdl.AddRow("client-vel-upd", m_scene.RootVelocityUpdateTolerance);
@@ -207,15 +204,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
207 m_scene.DebugAnimations = active; 204 m_scene.DebugAnimations = active;
208 } 205 }
209 206
210 if (options.ContainsKey("appear-refresh"))
211 {
212 bool newValue;
213
214 // FIXME: This can only come from the console at the moment but might not always be true.
215 if (ConsoleUtil.TryParseConsoleBool(MainConsole.Instance, options["appear-refresh"], out newValue))
216 m_scene.SendPeriodicAppearanceUpdates = newValue;
217 }
218
219 if (options.ContainsKey("client-pos-upd")) 207 if (options.ContainsKey("client-pos-upd"))
220 { 208 {
221 float newValue; 209 float newValue;