aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorUbitUmarov2017-06-07 18:04:02 +0100
committerUbitUmarov2017-06-07 18:04:02 +0100
commitc8b392508505f49aee01fecd1648774b7131a268 (patch)
tree242adf352a1b2436dfeeb94f8a695a43a913478d /OpenSim/Region/Framework
parentset optional group position and rotation before attach to scene (diff)
downloadopensim-SC-c8b392508505f49aee01fecd1648774b7131a268.zip
opensim-SC-c8b392508505f49aee01fecd1648774b7131a268.tar.gz
opensim-SC-c8b392508505f49aee01fecd1648774b7131a268.tar.bz2
opensim-SC-c8b392508505f49aee01fecd1648774b7131a268.tar.xz
remove nonsense SendPeriodicAppearanceUpdates. if we need such a thing, then a lot is broken. Remove duplicated CleanTempObjects() call, rename BackupWaitCallback thread as BackupWorker ( still didn't found cause for mantis 8783)
Diffstat (limited to 'OpenSim/Region/Framework')
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs34
1 files changed, 5 insertions, 29 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