aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2011-10-25 01:47:38 +0100
committerMelanie2011-10-25 01:47:38 +0100
commit0a65e7cadc56a4feaaaec3cb6e151f552a974902 (patch)
treeb9c4d5f5c1deb751d58fdcbb20cc39734b4d619f
parentMerge commit 'fd274a668803bc3da4cec95180538116038b503a' into bigmerge (diff)
parentrefactor: Put the frame update period when temporary objects are cleaned up i... (diff)
downloadopensim-SC-0a65e7cadc56a4feaaaec3cb6e151f552a974902.zip
opensim-SC-0a65e7cadc56a4feaaaec3cb6e151f552a974902.tar.gz
opensim-SC-0a65e7cadc56a4feaaaec3cb6e151f552a974902.tar.bz2
opensim-SC-0a65e7cadc56a4feaaaec3cb6e151f552a974902.tar.xz
Merge commit '128d8dfd8b355f84a71e2093e942937ca720c5c6' into bigmerge
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 8aadcc1..503b745 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -178,7 +178,8 @@ namespace OpenSim.Region.Framework.Scenes
178 178
179 private int m_update_physics = 1; 179 private int m_update_physics = 1;
180 private int m_update_entitymovement = 1; 180 private int m_update_entitymovement = 1;
181 private int m_update_objects = 1; // Update objects which have scheduled themselves for updates 181 private int m_update_objects = 1;
182 private int m_update_temp_cleaning = 1000;
182 private int m_update_presences = 1; // Update scene presence movements 183 private int m_update_presences = 1; // Update scene presence movements
183 private int m_update_events = 1; 184 private int m_update_events = 1;
184 private int m_update_backup = 200; 185 private int m_update_backup = 200;
@@ -1212,9 +1213,8 @@ namespace OpenSim.Region.Framework.Scenes
1212 int tmpFrameMS = maintc; 1213 int tmpFrameMS = maintc;
1213 agentMS = tempOnRezMS = eventMS = backupMS = terrainMS = landMS = 0; 1214 agentMS = tempOnRezMS = eventMS = backupMS = terrainMS = landMS = 0;
1214 1215
1215 // TODO: ADD AGENT TIME HERE
1216 // Increment the frame counter
1217 ++Frame; 1216 ++Frame;
1217
1218 try 1218 try
1219 { 1219 {
1220 int tmpAgentMS = Util.EnvironmentTickCount(); 1220 int tmpAgentMS = Util.EnvironmentTickCount();
@@ -1273,7 +1273,7 @@ namespace OpenSim.Region.Framework.Scenes
1273 physicsMS = Util.EnvironmentTickCountSubtract(tmpPhysicsMS); 1273 physicsMS = Util.EnvironmentTickCountSubtract(tmpPhysicsMS);
1274 1274
1275 // Delete temp-on-rez stuff 1275 // Delete temp-on-rez stuff
1276 if (Frame % 1000 == 0 && !m_cleaningTemps) 1276 if (Frame % m_update_temp_cleaning == 0 && !m_cleaningTemps)
1277 { 1277 {
1278 int tmpTempOnRezMS = Util.EnvironmentTickCount(); 1278 int tmpTempOnRezMS = Util.EnvironmentTickCount();
1279 m_cleaningTemps = true; 1279 m_cleaningTemps = true;