diff options
author | Melanie | 2010-12-15 22:59:52 +0000 |
---|---|---|
committer | Melanie | 2010-12-15 22:59:52 +0000 |
commit | d457b4c4b19902c67c0653b6c0c0b11496591dcd (patch) | |
tree | 188ad3f7743c1a775d5e7b87459b9658e05c7c9d /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | Make sure the material is set on physical prims (diff) | |
parent | Put in locks on m_killRecord to replace changed locks on m_entityUpdates.Sync... (diff) | |
download | opensim-SC-d457b4c4b19902c67c0653b6c0c0b11496591dcd.zip opensim-SC-d457b4c4b19902c67c0653b6c0c0b11496591dcd.tar.gz opensim-SC-d457b4c4b19902c67c0653b6c0c0b11496591dcd.tar.bz2 opensim-SC-d457b4c4b19902c67c0653b6c0c0b11496591dcd.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index f81030c..45625d6 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -152,7 +152,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
152 | private int m_update_backup = 200; | 152 | private int m_update_backup = 200; |
153 | private int m_update_terrain = 50; | 153 | private int m_update_terrain = 50; |
154 | private int m_update_land = 1; | 154 | private int m_update_land = 1; |
155 | private int m_update_coarse_locations = 50; | 155 | private int m_update_coarse_locations = 80; |
156 | 156 | ||
157 | private int frameMS; | 157 | private int frameMS; |
158 | private int physicsMS2; | 158 | private int physicsMS2; |
@@ -181,6 +181,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
181 | private object m_deleting_scene_object = new object(); | 181 | private object m_deleting_scene_object = new object(); |
182 | private object m_cleaningAttachments = new object(); | 182 | private object m_cleaningAttachments = new object(); |
183 | 183 | ||
184 | private bool m_cleaningTemps = false; | ||
185 | |||
184 | private UpdatePrioritizationSchemes m_priorityScheme = UpdatePrioritizationSchemes.Time; | 186 | private UpdatePrioritizationSchemes m_priorityScheme = UpdatePrioritizationSchemes.Time; |
185 | private bool m_reprioritizationEnabled = true; | 187 | private bool m_reprioritizationEnabled = true; |
186 | private double m_reprioritizationInterval = 5000.0; | 188 | private double m_reprioritizationInterval = 5000.0; |
@@ -1296,10 +1298,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
1296 | physicsMS = Util.EnvironmentTickCountSubtract(tmpPhysicsMS); | 1298 | physicsMS = Util.EnvironmentTickCountSubtract(tmpPhysicsMS); |
1297 | 1299 | ||
1298 | // Delete temp-on-rez stuff | 1300 | // Delete temp-on-rez stuff |
1299 | if (m_frame % m_update_backup == 0) | 1301 | if (m_frame % 1000 == 0 && !m_cleaningTemps) |
1300 | { | 1302 | { |
1301 | int tmpTempOnRezMS = Util.EnvironmentTickCount(); | 1303 | int tmpTempOnRezMS = Util.EnvironmentTickCount(); |
1302 | CleanTempObjects(); | 1304 | m_cleaningTemps = true; |
1305 | Util.FireAndForget(delegate { CleanTempObjects(); m_cleaningTemps = false; }); | ||
1303 | tempOnRezMS = Util.EnvironmentTickCountSubtract(tmpTempOnRezMS); | 1306 | tempOnRezMS = Util.EnvironmentTickCountSubtract(tmpTempOnRezMS); |
1304 | } | 1307 | } |
1305 | 1308 | ||
@@ -1326,12 +1329,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
1326 | terrainMS = Util.EnvironmentTickCountSubtract(terMS); | 1329 | terrainMS = Util.EnvironmentTickCountSubtract(terMS); |
1327 | } | 1330 | } |
1328 | 1331 | ||
1329 | if (m_frame % m_update_land == 0) | 1332 | //if (m_frame % m_update_land == 0) |
1330 | { | 1333 | //{ |
1331 | int ldMS = Util.EnvironmentTickCount(); | 1334 | // int ldMS = Util.EnvironmentTickCount(); |
1332 | UpdateLand(); | 1335 | // UpdateLand(); |
1333 | landMS = Util.EnvironmentTickCountSubtract(ldMS); | 1336 | // landMS = Util.EnvironmentTickCountSubtract(ldMS); |
1334 | } | 1337 | //} |
1335 | 1338 | ||
1336 | frameMS = Util.EnvironmentTickCountSubtract(tmpFrameMS); | 1339 | frameMS = Util.EnvironmentTickCountSubtract(tmpFrameMS); |
1337 | otherMS = tempOnRezMS + eventMS + backupMS + terrainMS + landMS; | 1340 | otherMS = tempOnRezMS + eventMS + backupMS + terrainMS + landMS; |
@@ -1424,13 +1427,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
1424 | 1427 | ||
1425 | private void CheckAtTargets() | 1428 | private void CheckAtTargets() |
1426 | { | 1429 | { |
1430 | Dictionary<UUID, SceneObjectGroup>.ValueCollection objs; | ||
1427 | lock (m_groupsWithTargets) | 1431 | lock (m_groupsWithTargets) |
1428 | { | 1432 | objs = m_groupsWithTargets.Values; |
1429 | foreach (SceneObjectGroup entry in m_groupsWithTargets.Values) | 1433 | |
1430 | { | 1434 | foreach (SceneObjectGroup entry in objs) |
1431 | entry.checkAtTargets(); | 1435 | entry.checkAtTargets(); |
1432 | } | ||
1433 | } | ||
1434 | } | 1436 | } |
1435 | 1437 | ||
1436 | 1438 | ||
@@ -4539,6 +4541,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4539 | } | 4541 | } |
4540 | } | 4542 | } |
4541 | } | 4543 | } |
4544 | |||
4542 | } | 4545 | } |
4543 | 4546 | ||
4544 | public void DeleteFromStorage(UUID uuid) | 4547 | public void DeleteFromStorage(UUID uuid) |