diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 87 |
1 files changed, 42 insertions, 45 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index eadec09..88b682b 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1278,56 +1278,53 @@ namespace OpenSim.Region.Framework.Scenes | |||
1278 | tempOnRezMS = Util.EnvironmentTickCountSubtract(tmpTempOnRezMS); | 1278 | tempOnRezMS = Util.EnvironmentTickCountSubtract(tmpTempOnRezMS); |
1279 | } | 1279 | } |
1280 | 1280 | ||
1281 | if (RegionStatus != RegionStatus.SlaveScene) | 1281 | if (Frame % m_update_events == 0) |
1282 | { | 1282 | { |
1283 | if (Frame % m_update_events == 0) | 1283 | int evMS = Util.EnvironmentTickCount(); |
1284 | { | 1284 | UpdateEvents(); |
1285 | int evMS = Util.EnvironmentTickCount(); | 1285 | eventMS = Util.EnvironmentTickCountSubtract(evMS); ; |
1286 | UpdateEvents(); | 1286 | } |
1287 | eventMS = Util.EnvironmentTickCountSubtract(evMS); ; | ||
1288 | } | ||
1289 | |||
1290 | if (Frame % m_update_backup == 0) | ||
1291 | { | ||
1292 | int backMS = Util.EnvironmentTickCount(); | ||
1293 | UpdateStorageBackup(); | ||
1294 | backupMS = Util.EnvironmentTickCountSubtract(backMS); | ||
1295 | } | ||
1296 | |||
1297 | if (Frame % m_update_terrain == 0) | ||
1298 | { | ||
1299 | int terMS = Util.EnvironmentTickCount(); | ||
1300 | UpdateTerrain(); | ||
1301 | terrainMS = Util.EnvironmentTickCountSubtract(terMS); | ||
1302 | } | ||
1303 | 1287 | ||
1304 | //if (Frame % m_update_land == 0) | 1288 | if (Frame % m_update_backup == 0) |
1305 | //{ | 1289 | { |
1306 | // int ldMS = Util.EnvironmentTickCount(); | 1290 | int backMS = Util.EnvironmentTickCount(); |
1307 | // UpdateLand(); | 1291 | UpdateStorageBackup(); |
1308 | // landMS = Util.EnvironmentTickCountSubtract(ldMS); | 1292 | backupMS = Util.EnvironmentTickCountSubtract(backMS); |
1309 | //} | 1293 | } |
1310 | 1294 | ||
1311 | frameMS = Util.EnvironmentTickCountSubtract(tmpFrameMS); | 1295 | if (Frame % m_update_terrain == 0) |
1312 | otherMS = tempOnRezMS + eventMS + backupMS + terrainMS + landMS; | 1296 | { |
1313 | lastCompletedFrame = Util.EnvironmentTickCount(); | 1297 | int terMS = Util.EnvironmentTickCount(); |
1314 | 1298 | UpdateTerrain(); | |
1315 | // if (Frame%m_update_avatars == 0) | 1299 | terrainMS = Util.EnvironmentTickCountSubtract(terMS); |
1316 | // UpdateInWorldTime(); | ||
1317 | StatsReporter.AddPhysicsFPS(physicsFPS); | ||
1318 | StatsReporter.AddTimeDilation(TimeDilation); | ||
1319 | StatsReporter.AddFPS(1); | ||
1320 | StatsReporter.SetRootAgents(m_sceneGraph.GetRootAgentCount()); | ||
1321 | StatsReporter.SetChildAgents(m_sceneGraph.GetChildAgentCount()); | ||
1322 | StatsReporter.SetObjects(m_sceneGraph.GetTotalObjectsCount()); | ||
1323 | StatsReporter.SetActiveObjects(m_sceneGraph.GetActiveObjectsCount()); | ||
1324 | StatsReporter.addFrameMS(frameMS); | ||
1325 | StatsReporter.addPhysicsMS(physicsMS + physicsMS2); | ||
1326 | StatsReporter.addOtherMS(otherMS); | ||
1327 | StatsReporter.SetActiveScripts(m_sceneGraph.GetActiveScriptsCount()); | ||
1328 | StatsReporter.addScriptLines(m_sceneGraph.GetScriptLPS()); | ||
1329 | } | 1300 | } |
1330 | 1301 | ||
1302 | //if (Frame % m_update_land == 0) | ||
1303 | //{ | ||
1304 | // int ldMS = Util.EnvironmentTickCount(); | ||
1305 | // UpdateLand(); | ||
1306 | // landMS = Util.EnvironmentTickCountSubtract(ldMS); | ||
1307 | //} | ||
1308 | |||
1309 | frameMS = Util.EnvironmentTickCountSubtract(tmpFrameMS); | ||
1310 | otherMS = tempOnRezMS + eventMS + backupMS + terrainMS + landMS; | ||
1311 | lastCompletedFrame = Util.EnvironmentTickCount(); | ||
1312 | |||
1313 | // if (Frame%m_update_avatars == 0) | ||
1314 | // UpdateInWorldTime(); | ||
1315 | StatsReporter.AddPhysicsFPS(physicsFPS); | ||
1316 | StatsReporter.AddTimeDilation(TimeDilation); | ||
1317 | StatsReporter.AddFPS(1); | ||
1318 | StatsReporter.SetRootAgents(m_sceneGraph.GetRootAgentCount()); | ||
1319 | StatsReporter.SetChildAgents(m_sceneGraph.GetChildAgentCount()); | ||
1320 | StatsReporter.SetObjects(m_sceneGraph.GetTotalObjectsCount()); | ||
1321 | StatsReporter.SetActiveObjects(m_sceneGraph.GetActiveObjectsCount()); | ||
1322 | StatsReporter.addFrameMS(frameMS); | ||
1323 | StatsReporter.addPhysicsMS(physicsMS + physicsMS2); | ||
1324 | StatsReporter.addOtherMS(otherMS); | ||
1325 | StatsReporter.SetActiveScripts(m_sceneGraph.GetActiveScriptsCount()); | ||
1326 | StatsReporter.addScriptLines(m_sceneGraph.GetScriptLPS()); | ||
1327 | |||
1331 | if (LoginsDisabled && Frame == 20) | 1328 | if (LoginsDisabled && Frame == 20) |
1332 | { | 1329 | { |
1333 | // In 99.9% of cases it is a bad idea to manually force garbage collection. However, | 1330 | // In 99.9% of cases it is a bad idea to manually force garbage collection. However, |