Skip to main content

memory leak in picked.getIntersection(0) ?

No replies
Joined: 2005-06-29


I trying to map an object to a terrain using the PickResult picked = picker.pickClosest(); picked.getIntersection(0); methods and I noticed a memory leak problem. I can create the PickResult object but as soon as I use picked.getIntersection(0); my application needs 20 MB extra memory and worse continues to need more memory. With j3d 1.4 this problem was bad (needing a few extra MB every few seconds) and with j3d 1.5.1it is better but still the memory usage is piling up and the more I move my object the worse it gets. Calling the Garbage Collector every few seconds helps a little bit, but does not solve the problem and reduces my application framerate. Did anyone have this problem and may even found a solution?