diff options
Diffstat (limited to 'OpenSim/Region/Physics/BulletSNPlugin/BSScene.cs')
-rw-r--r-- | OpenSim/Region/Physics/BulletSNPlugin/BSScene.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/BulletSNPlugin/BSScene.cs b/OpenSim/Region/Physics/BulletSNPlugin/BSScene.cs index 1a7c34b..4fc3e2a 100644 --- a/OpenSim/Region/Physics/BulletSNPlugin/BSScene.cs +++ b/OpenSim/Region/Physics/BulletSNPlugin/BSScene.cs | |||
@@ -106,11 +106,11 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters | |||
106 | 106 | ||
107 | // Pinned memory used to pass step information between managed and unmanaged | 107 | // Pinned memory used to pass step information between managed and unmanaged |
108 | internal int m_maxCollisionsPerFrame; | 108 | internal int m_maxCollisionsPerFrame; |
109 | private List<BulletXNA.CollisionDesc> m_collisionArray; | 109 | private BulletXNA.CollisionDesc[] m_collisionArray; |
110 | //private GCHandle m_collisionArrayPinnedHandle; | 110 | //private GCHandle m_collisionArrayPinnedHandle; |
111 | 111 | ||
112 | internal int m_maxUpdatesPerFrame; | 112 | internal int m_maxUpdatesPerFrame; |
113 | private List<BulletXNA.EntityProperties> m_updateArray; | 113 | private BulletXNA.EntityProperties[] m_updateArray; |
114 | //private GCHandle m_updateArrayPinnedHandle; | 114 | //private GCHandle m_updateArrayPinnedHandle; |
115 | 115 | ||
116 | 116 | ||
@@ -201,9 +201,9 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters | |||
201 | GetInitialParameterValues(config); | 201 | GetInitialParameterValues(config); |
202 | 202 | ||
203 | // allocate more pinned memory close to the above in an attempt to get the memory all together | 203 | // allocate more pinned memory close to the above in an attempt to get the memory all together |
204 | m_collisionArray = new List<BulletXNA.CollisionDesc>(); | 204 | m_collisionArray = new BulletXNA.CollisionDesc[0]; |
205 | //m_collisionArrayPinnedHandle = GCHandle.Alloc(m_collisionArray, GCHandleType.Pinned); | 205 | //m_collisionArrayPinnedHandle = GCHandle.Alloc(m_collisionArray, GCHandleType.Pinned); |
206 | m_updateArray = new List<BulletXNA.EntityProperties>(); | 206 | m_updateArray = new BulletXNA.EntityProperties[0]; |
207 | //m_updateArrayPinnedHandle = GCHandle.Alloc(m_updateArray, GCHandleType.Pinned); | 207 | //m_updateArrayPinnedHandle = GCHandle.Alloc(m_updateArray, GCHandleType.Pinned); |
208 | 208 | ||
209 | // Enable very detailed logging. | 209 | // Enable very detailed logging. |