Nikolai V. Chr. wrote:

Alessandro Borges wrote:

I agree with Nikolai, but I am not sure if just setting
wakeupOnElapsedFrame with passive = true will solve the 100% CPU usage
problem.


Thats not the point, maybe I want it to be WakeUpOnElapsedTime. The
point is, I want to decide for myself, which is impossible as long as
passiveWakeupCriterion is a private member.

Unless the time interval is so small that force wakeup every frame,
using WakeupOnElapsedTime should not keep CPU 100% busy.

also Kelvin Chung wrote:

This is default behavior.
To  avoid 100% cpu usage use wakeupOnElapsedFrame with passive = true.

And how can I do that? I cannot since there are no setters and
passiveWakeupCriterion is a private member.
Write your own behavior.



Another way is to set the maximum frame rate by using

Very unflexible. Sometimes I want the possibility to have a high
framerate.

This is kind of trade off. High framerate need CPU cycle but you can set
a upper
limit on it, running at frame rate > screen refresh rate may waste CPU
cycle.

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

Reply via email to