> From: Olivier fillon <[EMAIL PROTECTED]>
> Subject: Re: [JAVA3D] postSwap() Question and performance
>
> 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..
The cause here is that Billboards are controlled by Behaviors which have are
triggered by a WakeOnElapsedFrames(0) criteria. This criteria tells J3D to wake
up after the next frame is drawn, which causes J3D to continuously animate the
scene.
> So:
> - has anyone else solve this problem???'
Any scene with a WakeOnElapsedFrames(0) behavior will animate continuously.
Doug Gehringer
Sun Microsystems
===========================================================================
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".