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.
The point is that anything in com.sun.blah is a utility class. It is
there to allow end users to quickly put together a simple application.
If you want to do anything more than that, then you should be starting
having to write your own. The stock utility classes are good for trivial
apps, but they are woeful for anything more than that - they're slow,
they generate way too much garbage (they should be generating any at
_all_) and they are designed around the single-use principle. If you
want interpolators, do it yourself.

Just by asking that you want to change things like the calling frequency
or behaviour of a pre-built object indicates that you are well beyond
what those standard behaviours provide. It also suggests to me that you
don't understand how to build high performance Java3D applications
because typically the first thing done is to throw away as many
behaviours as possible. You simply do not want the sort of features you
are asking for because that leads to bad performance. Despite the
niceties of Java3D behaviour mechanisms, they suck in a high-performance
applications. To build anything of reasonable frame rates, you toss out
every behaviour except one or two - an elapsedFrame/Time and maybe the
AWTEvent behaviour. Everything else has to go and you do everything
yourself - interpolations, geometry modifications etc.


--
Justin Couch                         http://www.vlc.com.au/~justin/
Java Architect & Bit Twiddler              http://www.yumetech.com/
Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
                                              - Greg Bear, Slant
-------------------------------------------------------------------

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