< Zurück | Inhalt | Weiter >

13.5.1 Calculating the rendered FPS using a behavior

A useful method of displaying the rendered FPS in a Java 3D application is to add the following Behavior class anywhere within the scenegraph. A behavior−based calculation is easier to add and remove to a program than overriding the Canvas3D postSwap method.



 

NOTE
From FpsBehavior