aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorDahlia Trimble2008-08-27 23:39:50 +0000
committerDahlia Trimble2008-08-27 23:39:50 +0000
commit2c842652c16683c11c96eb0b89c150c857b58f2f (patch)
tree4b8b9e3a0a759dc8383d235c84855a5da18cdcb4 /OpenSim
parentadds releaseSourceMeshData() method to IMesh and Mesh for freeing mesh data a... (diff)
downloadopensim-SC-2c842652c16683c11c96eb0b89c150c857b58f2f.zip
opensim-SC-2c842652c16683c11c96eb0b89c150c857b58f2f.tar.gz
opensim-SC-2c842652c16683c11c96eb0b89c150c857b58f2f.tar.bz2
opensim-SC-2c842652c16683c11c96eb0b89c150c857b58f2f.tar.xz
ODEPlugin now frees source mesh data after conversion to pinned lists to save memory
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODEPrim.cs2
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