diff options
author | Justin Clark-Casey (justincc) | 2012-05-10 23:43:38 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-05-10 23:43:38 +0100 |
commit | abc029d1f4a2ece71a070a28611a99a4fa9b47ba (patch) | |
tree | 33cce98755a88a242849634ef57f3971008fcb4e /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | Add "attachments" show console command that will show the server's record of ... (diff) | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-abc029d1f4a2ece71a070a28611a99a4fa9b47ba.zip opensim-SC_OLD-abc029d1f4a2ece71a070a28611a99a4fa9b47ba.tar.gz opensim-SC_OLD-abc029d1f4a2ece71a070a28611a99a4fa9b47ba.tar.bz2 opensim-SC_OLD-abc029d1f4a2ece71a070a28611a99a4fa9b47ba.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 4d0aa6f..3d2213a 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1353,6 +1353,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
1353 | 1353 | ||
1354 | try | 1354 | try |
1355 | { | 1355 | { |
1356 | // Apply taints in terrain module to terrain in physics scene | ||
1357 | if (Frame % m_update_terrain == 0) | ||
1358 | { | ||
1359 | terMS = Util.EnvironmentTickCount(); | ||
1360 | UpdateTerrain(); | ||
1361 | terrainMS = Util.EnvironmentTickCountSubtract(terMS); | ||
1362 | } | ||
1363 | |||
1356 | tmpPhysicsMS2 = Util.EnvironmentTickCount(); | 1364 | tmpPhysicsMS2 = Util.EnvironmentTickCount(); |
1357 | if ((Frame % m_update_physics == 0) && m_physics_enabled) | 1365 | if ((Frame % m_update_physics == 0) && m_physics_enabled) |
1358 | m_sceneGraph.UpdatePreparePhysics(); | 1366 | m_sceneGraph.UpdatePreparePhysics(); |
@@ -1417,13 +1425,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
1417 | backupMS = Util.EnvironmentTickCountSubtract(backMS); | 1425 | backupMS = Util.EnvironmentTickCountSubtract(backMS); |
1418 | } | 1426 | } |
1419 | 1427 | ||
1420 | if (Frame % m_update_terrain == 0) | ||
1421 | { | ||
1422 | terMS = Util.EnvironmentTickCount(); | ||
1423 | UpdateTerrain(); | ||
1424 | terrainMS = Util.EnvironmentTickCountSubtract(terMS); | ||
1425 | } | ||
1426 | |||
1427 | //if (Frame % m_update_land == 0) | 1428 | //if (Frame % m_update_land == 0) |
1428 | //{ | 1429 | //{ |
1429 | // int ldMS = Util.EnvironmentTickCount(); | 1430 | // int ldMS = Util.EnvironmentTickCount(); |