I wonder if it is not related to your use of a behavior:
I have a scene with around 50 billboards (which are behaviours):
it hardly stop refreshing (I use the same postSwap method as you to detect
it) and is slow as hell ;
50*4 refresh would explain my problem!!!
Indeed, if I disable the behavior, everything is smooth: only refreshed when
a change occurs..
So:
- has anyone else solve this problem???
- is it a bug???
- Bob, in your case, is it possible for you to disable your behavior when
not in use? This would be a possible work around
Cheers
Olivier
-----Original Message-----
From: Bob Gray <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, August 27, 1999 4:48 AM
Subject: [JAVA3D] postSwap() Question and performance
>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".
>
===========================================================================
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".