mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
* Added PhysicsScene.Dispose()
* In ODE, disposing of all of the ODE objects and the ODE World to reclaim memory when the simulator restarts.
This commit is contained in:
@@ -81,6 +81,8 @@ namespace OpenSim.Region.Physics.Manager
|
||||
|
||||
public abstract void DeleteTerrain();
|
||||
|
||||
public abstract void Dispose();
|
||||
|
||||
public abstract bool IsThreaded { get; }
|
||||
|
||||
private class NullPhysicsScene : PhysicsScene
|
||||
@@ -157,6 +159,10 @@ namespace OpenSim.Region.Physics.Manager
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user