aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorUbitUmarov2019-11-27 16:44:45 +0000
committerUbitUmarov2019-11-27 16:44:45 +0000
commit5c5e4bd8304dbb607a4008ec41ecacf716cfd0db (patch)
tree105c8b5292c17521803869bc94324ef626b780f8 /OpenSim/Region/Framework/Scenes/Scene.cs
parentand yes mono-addins .... (diff)
downloadopensim-SC-5c5e4bd8304dbb607a4008ec41ecacf716cfd0db.zip
opensim-SC-5c5e4bd8304dbb607a4008ec41ecacf716cfd0db.tar.gz
opensim-SC-5c5e4bd8304dbb607a4008ec41ecacf716cfd0db.tar.bz2
opensim-SC-5c5e4bd8304dbb607a4008ec41ecacf716cfd0db.tar.xz
a few changes on check targets for lsl
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs20
1 files changed, 13 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index a0a2882..0c5007a 100755
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -410,7 +410,7 @@ namespace OpenSim.Region.Framework.Scenes
410 private readonly Timer m_restartTimer = new Timer(15000); // Wait before firing 410 private readonly Timer m_restartTimer = new Timer(15000); // Wait before firing
411 private volatile bool m_backingup; 411 private volatile bool m_backingup;
412 private Dictionary<UUID, ReturnInfo> m_returns = new Dictionary<UUID, ReturnInfo>(); 412 private Dictionary<UUID, ReturnInfo> m_returns = new Dictionary<UUID, ReturnInfo>();
413 private Dictionary<UUID, int> m_groupsWithTargets = new Dictionary<UUID, int>(); 413 private HashSet<UUID> m_groupsWithTargets = new HashSet<UUID>();
414 414
415 private string m_defaultScriptEngine; 415 private string m_defaultScriptEngine;
416 416
@@ -837,7 +837,8 @@ namespace OpenSim.Region.Framework.Scenes
837 837
838 Random random = new Random(); 838 Random random = new Random();
839 839
840 m_lastAllocatedLocalId = (uint)(random.NextDouble() * (double)(uint.MaxValue / 2)) + (uint)(uint.MaxValue / 4); 840 m_lastAllocatedLocalId = (int)(random.NextDouble() * (uint.MaxValue / 4));
841 m_lastAllocatedIntId = (int)(random.NextDouble() * (int.MaxValue / 4));
841 m_authenticateHandler = authen; 842 m_authenticateHandler = authen;
842 m_sceneGridService = new SceneCommunicationService(); 843 m_sceneGridService = new SceneCommunicationService();
843 m_SimulationDataService = simDataService; 844 m_SimulationDataService = simDataService;
@@ -1633,7 +1634,7 @@ namespace OpenSim.Region.Framework.Scenes
1633 1634
1634 // m_log.DebugFormat("[SCENE]: Processing frame {0} in {1}", Frame, RegionInfo.RegionName); 1635 // m_log.DebugFormat("[SCENE]: Processing frame {0} in {1}", Frame, RegionInfo.RegionName);
1635 1636
1636 agentMS = tempOnRezMS = eventMS = backupMS = terrainMS = landMS = 0f; 1637 otherMS = agentMS = tempOnRezMS = eventMS = backupMS = terrainMS = landMS = 0f;
1637 1638
1638 try 1639 try
1639 { 1640 {
@@ -1713,6 +1714,10 @@ namespace OpenSim.Region.Framework.Scenes
1713 if (Frame % m_update_objects == 0) 1714 if (Frame % m_update_objects == 0)
1714 m_sceneGraph.UpdateObjectGroups(); 1715 m_sceneGraph.UpdateObjectGroups();
1715 1716
1717 tmpMS2 = Util.GetTimeStampMS();
1718 otherMS = (float)(tmpMS2 - tmpMS);
1719 tmpMS = tmpMS2;
1720
1716 // Run through all ScenePresences looking for updates 1721 // Run through all ScenePresences looking for updates
1717 // Presence updates and queued object updates for each presence are sent to clients 1722 // Presence updates and queued object updates for each presence are sent to clients
1718 if (Frame % m_update_presences == 0) 1723 if (Frame % m_update_presences == 0)
@@ -1828,7 +1833,7 @@ namespace OpenSim.Region.Framework.Scenes
1828 m_firstHeartbeat = false; 1833 m_firstHeartbeat = false;
1829 Watchdog.UpdateThread(); 1834 Watchdog.UpdateThread();
1830 1835
1831 otherMS = tempOnRezMS + eventMS + backupMS + terrainMS + landMS; 1836 otherMS += tempOnRezMS + eventMS + backupMS + terrainMS + landMS;
1832 1837
1833 tmpMS = Util.GetTimeStampMS(); 1838 tmpMS = Util.GetTimeStampMS();
1834 1839
@@ -1912,7 +1917,7 @@ namespace OpenSim.Region.Framework.Scenes
1912 public void AddGroupTarget(SceneObjectGroup grp) 1917 public void AddGroupTarget(SceneObjectGroup grp)
1913 { 1918 {
1914 lock (m_groupsWithTargets) 1919 lock (m_groupsWithTargets)
1915 m_groupsWithTargets[grp.UUID] = 0; 1920 m_groupsWithTargets.Add(grp.UUID);
1916 } 1921 }
1917 1922
1918 public void RemoveGroupTarget(SceneObjectGroup grp) 1923 public void RemoveGroupTarget(SceneObjectGroup grp)
@@ -1928,13 +1933,14 @@ namespace OpenSim.Region.Framework.Scenes
1928 lock (m_groupsWithTargets) 1933 lock (m_groupsWithTargets)
1929 { 1934 {
1930 if (m_groupsWithTargets.Count != 0) 1935 if (m_groupsWithTargets.Count != 0)
1931 objs = new List<UUID>(m_groupsWithTargets.Keys); 1936 objs = new List<UUID>(m_groupsWithTargets);
1932 } 1937 }
1933 1938
1934 if (objs != null) 1939 if (objs != null)
1935 { 1940 {
1936 foreach (UUID entry in objs) 1941 for(int i = 0; i< objs.Count; ++i)
1937 { 1942 {
1943 UUID entry = objs[i];
1938 SceneObjectGroup grp = GetSceneObjectGroup(entry); 1944 SceneObjectGroup grp = GetSceneObjectGroup(entry);
1939 if (grp == null) 1945 if (grp == null)
1940 m_groupsWithTargets.Remove(entry); 1946 m_groupsWithTargets.Remove(entry);