My question for you is why are you calling it several hundred times a
second?  Is it because you are calling the function on a number of different
objects several times a second or that often on one object due to
application of mouse or other input to provide incremental transforms?  If
the latter is the case, you may want to apply incremental transforms to an
intermediate matrix and then update the model transforms only once or twice
a frame (60 to 120 times a second or less depending on your actual frame
rate).  This will be much more efficient and will reduce the amount of
"garbage" being generated.

Roberto Speranza
Director, Research and Development, @dot.dot Internet Solutions
mailto:[EMAIL PROTECTED]
http://dot.dot.on.ca/
-----Original Message-----
From: Pascal Debarge <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: January 19, 1999 9:17 PM
Subject: [java3d] java 3D and gc issue


>Hi everybody,
>
>and first of all  thanks to all of you who gave me some suggestions on
>my getTransform() and setTransform() problem. I have reviewed all my
>code and I am now
>sure that I am reusing all my objects during my app is running ... Now,
>when I am
>using the -verbose:gc flag, the garbage collector is still very busy and
>free
>about 60000 objects every 10 sec. There is I think a problem in the
>function
>setTransform() that is the one I am calling the most often (several
>hundreds times per
>seconds ...).
>
>This remark is especially addressed to the java3D dev. team.
>
>Pascal.
>
>---------------------------------------------------------------------------
------
>
>Pascal Debarge / Computer Graphics Engineer / Animation Sience
>tel: (408) 543 1615
>e-mail: [EMAIL PROTECTED]
>
>
>
>=====================================================================
>To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
>Java 3D Home Page: http://java.sun.com/products/java-media/3D/

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to