>Delivered-To: [EMAIL PROTECTED]
>MIME-Version: 1.0
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
>Date: Thu, 25 Oct 2001 18:09:50 +0700
>From: Erio Prihastono <[EMAIL PROTECTED]>
>Subject: [JAVA3D] KeynavBehaviour
>To: [EMAIL PROTECTED]
>
>Hi,
>
>when I add navkeyBehaviour to my program , the processor usage increased to 99% ,
>Any Idea
Why this could happens ?
>
>ERIO P
See bug 4376368 - Adding KeyNavigatorBehavior will keep cpu busy
This is because this utility library KeyNavigatorBehavior
use an non-passive wakeupOnElapsedFrame WakeupCriterion.
/**
* Constructs a WakeupOnElapsedFrames criterion.
*
* @param frameCount the number of frames that Java 3D should draw
* before awakening this behavior object; a value of N means
* wakeup at the end of frame N, where the current frame is zero,
* a value of zero means wakeup at the end of the current frame.
*
* @param passive flag indicating whether this behavior is
* passive; a non-passive behavior will cause the rendering system
* to run continuously, while a passive behavior will only run
* when some other event causes a frame to be run.
*
* @exception IllegalArgumentException if frameCount is less than zero
*
* @since Java 3D 1.2
*/
public WakeupOnElapsedFrames(int frameCount, boolean passive)
- 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".