diff options
author | Teravus Ovares | 2008-10-16 12:57:29 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-10-16 12:57:29 +0000 |
commit | 68d85497adc328f8fda2fef52fb51f2c9bc7ece0 (patch) | |
tree | 58d10a1c83c71717f5073754aea04d15b8ea2280 /OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | |
parent | Check for terrain size=256x256 on "terrain load <file>". This fixes (diff) | |
download | opensim-SC-68d85497adc328f8fda2fef52fb51f2c9bc7ece0.zip opensim-SC-68d85497adc328f8fda2fef52fb51f2c9bc7ece0.tar.gz opensim-SC-68d85497adc328f8fda2fef52fb51f2c9bc7ece0.tar.bz2 opensim-SC-68d85497adc328f8fda2fef52fb51f2c9bc7ece0.tar.xz |
* Releases the inter-region thread synchronization between physics in ODE on the same instance.
* If you are hosting many regions on a single instance, you will probably notice a decrease in region startup time and maybe a slight increase in performance.
* Single regions won't notice anything different
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/ODECharacter.cs')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index 2561fa5..9ad9318 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | |||
@@ -147,7 +147,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
147 | } | 147 | } |
148 | CAPSULE_LENGTH = (size.Z - ((size.Z * height_fudge_factor))); | 148 | CAPSULE_LENGTH = (size.Z - ((size.Z * height_fudge_factor))); |
149 | 149 | ||
150 | lock (OdeScene.OdeLock) | 150 | lock (_parent_scene.OdeLock) |
151 | { | 151 | { |
152 | AvatarGeomAndBodyCreation(pos.X, pos.Y, pos.Z, m_tensor); | 152 | AvatarGeomAndBodyCreation(pos.X, pos.Y, pos.Z, m_tensor); |
153 | } | 153 | } |
@@ -362,7 +362,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
362 | get { return _position; } | 362 | get { return _position; } |
363 | set | 363 | set |
364 | { | 364 | { |
365 | lock (OdeScene.OdeLock) | 365 | lock (_parent_scene.OdeLock) |
366 | { | 366 | { |
367 | d.BodySetPosition(Body, value.X, value.Y, value.Z); | 367 | d.BodySetPosition(Body, value.X, value.Y, value.Z); |
368 | _position = value; | 368 | _position = value; |
@@ -386,7 +386,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
386 | set | 386 | set |
387 | { | 387 | { |
388 | m_pidControllerActive = true; | 388 | m_pidControllerActive = true; |
389 | lock (OdeScene.OdeLock) | 389 | lock (_parent_scene.OdeLock) |
390 | { | 390 | { |
391 | d.JointDestroy(Amotor); | 391 | d.JointDestroy(Amotor); |
392 | 392 | ||
@@ -863,7 +863,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
863 | /// </summary> | 863 | /// </summary> |
864 | public void Destroy() | 864 | public void Destroy() |
865 | { | 865 | { |
866 | lock (OdeScene.OdeLock) | 866 | lock (_parent_scene.OdeLock) |
867 | { | 867 | { |
868 | // Kill the Amotor | 868 | // Kill the Amotor |
869 | d.JointDestroy(Amotor); | 869 | d.JointDestroy(Amotor); |