aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Manager/PhysicsScene.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-02-11 22:54:51 +0000
committerTeravus Ovares2008-02-11 22:54:51 +0000
commitf603e57e9ae9d9b7e3bf6b35924d99292cf6de43 (patch)
tree5b3395faf6d8d9c46006f4d7fdb2ddfe36bd8be6 /OpenSim/Region/Physics/Manager/PhysicsScene.cs
parentTiny change to print out a warning in a situation which almost guaranteeably ... (diff)
downloadopensim-SC-f603e57e9ae9d9b7e3bf6b35924d99292cf6de43.zip
opensim-SC-f603e57e9ae9d9b7e3bf6b35924d99292cf6de43.tar.gz
opensim-SC-f603e57e9ae9d9b7e3bf6b35924d99292cf6de43.tar.bz2
opensim-SC-f603e57e9ae9d9b7e3bf6b35924d99292cf6de43.tar.xz
* Added PhysicsScene.Dispose()
* In ODE, disposing of all of the ODE objects and the ODE World to reclaim memory when the simulator restarts.
Diffstat (limited to 'OpenSim/Region/Physics/Manager/PhysicsScene.cs')
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsScene.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsScene.cs b/OpenSim/Region/Physics/Manager/PhysicsScene.cs
index 00c0ff1..5f08898 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsScene.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsScene.cs
@@ -81,6 +81,8 @@ namespace OpenSim.Region.Physics.Manager
81 81
82 public abstract void DeleteTerrain(); 82 public abstract void DeleteTerrain();
83 83
84 public abstract void Dispose();
85
84 public abstract bool IsThreaded { get; } 86 public abstract bool IsThreaded { get; }
85 87
86 private class NullPhysicsScene : PhysicsScene 88 private class NullPhysicsScene : PhysicsScene
@@ -157,6 +159,10 @@ namespace OpenSim.Region.Physics.Manager
157 { 159 {
158 get { return false; } 160 get { return false; }
159 } 161 }
162 public override void Dispose()
163 {
164
165 }
160 } 166 }
161 } 167 }
162} \ No newline at end of file 168} \ No newline at end of file