Augusto Sellhorn wrote:

> Craig Beattie wrote:
> >
> > Would calling the gc each frame an option. many calls to the gc may
> > limit the amount of work it has to do and so spread the delay.
> >
> > just a thought
>
> An interesting one ... or have a thread that calls the gc at periodic
> intervals ...
>
> Does anybody know what kind of overhead is incurred by System.gc(),
> enven if there's nothing to be gc'ed ?
>
> [ wish I had the VM code :( ]
>
> --
> Augusto Sellhorn
> GE Harris Energy Control Systems
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 3D Home Page: http://java.sun.com/products/java-media/3D/


I have tried to call gc() at each frame ( at 15 fps ) and I am telling
you, I can just forget about it.
My gc frees about 80 objects each time which takes about 150 ms !!!!!!!
I effectivelly assume that System.gc() is using some ressources even if
there is almost nothing to free.

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/

Reply via email to