tmpvar / livecad

live coding of 3d surfaces and objects
livecad.wtf
53 stars 2 forks source link

address memory leaks in net-oce #39

Closed tmpvar closed 9 years ago

tmpvar commented 9 years ago

when shipping back verts in display() the created buffers are never freed. This will take some reorganization to clean these up after the response has been encoded

Note: this applies to more than just display() but it is a prime offender

tmpvar commented 9 years ago

easy to reproduce:

var cubes = [];
for (var i=1; i<15000; i++) {
  cubes.push(cube(i*20).translate(i*20, 0, 0));
}

display(cubes);
tmpvar commented 9 years ago

I believe using the collections in opencascade will allow reset to work properly. the other memory bloat I'm not sure where it's coming from

tmpvar commented 9 years ago

narrowed it down to TopoDS_Builder / TopoDS_Compound - Doubles the amount of used memory.

tmpvar commented 9 years ago

done as much as I can for now, moving out of this milestone

tmpvar commented 9 years ago

closing until we start hitting limits