Update to java3d 1.3.1 fcs. Previous versions contained a number of bugs related to memory usage, which (in my case) were solved in the current release.
Cheers,
Florin
-----Urspr�ngliche Nachricht----- *Von:* hterrolle [mailto:[EMAIL PROTECTED] *Gesendet:* Dienstag, 17. Juni 2003 16:08 *An:* [EMAIL PROTECTED] *Betreff:* [JAVA3D] Memory comfirmation
Hi,
i incease the RAM on my machine so JAVA is able to consume more memories than before. The great things is that my application run much fasrter and can hold more information. But when i for example destroy 100 frames i do not see any recover of the memori on my systyeme memory monitor. So if i reload 100 frame. My computer start to swap. And of course you know that performance start to goes down very quickly. So i wanted to know if there is no possiblity to recover some memoties for example sset to null all the frame that i remove or using the destroy() from the object class.
if some one know how to recover memorie ! Great
it is my weekness
salut Herve
In Java3D v1.3.1 it is required to invoke Viewer.clearViewerMap(); (new in V1.3.1)
to clean up memory if SimpleUniverse is used.
That's why we add a method in SimpleUniverse for doing this:
/**
* Cleanup memory use and reference by SimpleUniverse.
* Typically it should be invoked by the applet's destroy method.
*/
public void cleanup() {
viewer[0].getView().removeAllCanvas3Ds();
viewer[0].setViewingPlatform(null);
removeAllLocales();
// viewerMap cleanup here to prevent memory leak problem.
Viewer.clearViewerMap();}
- Kelvin ----------------- Java 3D Team Sun Microsystems Inc.
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
