I display a scene in which nothing happens unless you type a key.  When you
type a key once, a behavior rotates the scene once by a fixed angle amount.

I defined MyCanvas3D by extending Canvas3D so that I could get access to the
postSwap() method.

By putting a counter in my postSwap() method, I find that for every scene
change (one key type) postSwap is getting called *4* times.

The Java 3D API doc says:

"This routine is called by the Java 3D rendering loop after completing all
rendering to the canvas, and all other canvases associated with this view,
for this frame following the buffer swap."

Can someone tell me why postSwap is getting called 4 times?  Is this an
indication of a performance problem?  Is there more going on than there
really needs to be?  Is there something I can do to have postSwap() called
only once (and maybe make my rotation of the scene a little smoother?) Is my
scene being rendered/updated 4 times for every scene change?

Bob Gray

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