Carolyn,

I don't agree with your implication that 100% CPU usage is necessarily synonymous
with 'poor performance'.

If you are using Java3D is such a way as to want it to render as many frames-per-second
as possble, then you would expect to see 100% CPU usage. This is typically a
scenario that occurs when using interpolators or any behaviour that wakes up every 
frame.

In order to avoid this, you can call setMinimumFrameCycleTime() in your View object
to limit the frame rate.

Hope this helps,
Rob


cgerrard wrote:

> Hi all,
>
> I've been surprised how good the J3D performance has been so far - that was
> until I started using interpolators.
>
> Seeing there was a problem with CPU usage I went back to the demo's and using
> the HelloUniverse sample proved that as soon as a single interpolator was added as
> a child to a transform group the CPU usage went up to a 100%! I'm using an
> 800MHz Pentium 3 machine.
>
> I also found that if you create an interpolator with either a null alpha
> or with the setEnable set to false, so that there will be no interpolation
> at this stage, this has no effect on the CPU usage.  Which is a pity since it
> might be acceptable to have poor performance during a defined period of animation.
> I thought about adding the interpolator to the transform as animation
> is required but this gave a restricted access exception.
>
> Any suggestions please.
>
> ====================
>
> Carolyn Gerrard
> Lucent Technologies
> E-mail [EMAIL PROTECTED]
>
> ===========================================================================
> 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".

--


Rob Nugent
Development Manager
PeerLogic
[EMAIL PROTECTED]
http://www.peerlogic.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363

===========================================================================
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".

Reply via email to