diff options
author | Dahlia Trimble | 2008-08-27 23:39:50 +0000 |
---|---|---|
committer | Dahlia Trimble | 2008-08-27 23:39:50 +0000 |
commit | 2c842652c16683c11c96eb0b89c150c857b58f2f (patch) | |
tree | 4b8b9e3a0a759dc8383d235c84855a5da18cdcb4 | |
parent | adds releaseSourceMeshData() method to IMesh and Mesh for freeing mesh data a... (diff) | |
download | opensim-SC_OLD-2c842652c16683c11c96eb0b89c150c857b58f2f.zip opensim-SC_OLD-2c842652c16683c11c96eb0b89c150c857b58f2f.tar.gz opensim-SC_OLD-2c842652c16683c11c96eb0b89c150c857b58f2f.tar.bz2 opensim-SC_OLD-2c842652c16683c11c96eb0b89c150c857b58f2f.tar.xz |
ODEPlugin now frees source mesh data after conversion to pinned lists to save memory
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index c01626a..eafce5a 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |||
@@ -683,6 +683,8 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
683 | float[] vertexList = primMesh.getVertexListAsFloatLocked(); // Note, that vertextList is pinned in memory | 683 | float[] vertexList = primMesh.getVertexListAsFloatLocked(); // Note, that vertextList is pinned in memory |
684 | int[] indexList = primMesh.getIndexListAsIntLocked(); // Also pinned, needs release after usage | 684 | int[] indexList = primMesh.getIndexListAsIntLocked(); // Also pinned, needs release after usage |
685 | 685 | ||
686 | primMesh.releaseSourceMeshData(); // free up the original mesh data to save memory | ||
687 | |||
686 | int VertexCount = vertexList.GetLength(0)/3; | 688 | int VertexCount = vertexList.GetLength(0)/3; |
687 | int IndexCount = indexList.GetLength(0); | 689 | int IndexCount = indexList.GetLength(0); |
688 | 690 | ||