(Just a few common gotchas here)

1. Have you disabled the dlistcache for the geom?
2. Are you doing any multi-aspect work and forgetting to clear the changelists?

Best regards,
/Marcus

Oliver Kutter wrote:
Hi everybody,

I have a problem with memory leaks. I'm programming a particle system. And for that particle system I use a geometry, where I store my positions of the particles. My particles look like small arrows (triangular), and I use the geometry as type = GL_TRIANGLES and with a length between 100 and 5000 particles (traingles). To move the particles, I don't use a transform, because I would need a Geometry, a Node, a Transform, a Transform Node (and so on) for each of the 5000 traingles and that would need to much memory. What I'm doing instead, is, that I get the current position and set the new position with

begin (_partPos);
_partPos->setValue(Pnt3f(x,y,z), i);
end (_partPos);

where i is the number of the current particle (_partPos is a GeoPositions3fPtr Object) and x,y,z is the new position.

And now my problem: Everytime I'm animating my particle, my memory usage increases slowly, especially when I first reset my particle and the geometry and call clear() on every component of the geometry and then add new points to the geometry.

I even tried some other solutions like
_partPos->getValue(i).setValue(Pnt3f(x,y,z));
but nothing changed.

Why, has anyone an idea?
Bye, Oliver


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to