Class BubbleMarkExample
java.lang.Object
com.ardor3d.example.benchmark.ball.BubbleMarkExample
- All Implemented Interfaces:
Scene
The famous BubbleMark UI test, recreated using quads.
There are several system params you can use to modify the test:- -Dvsync=true -- ask the canvas to use vertical sync to lock to the monitor refresh rate.
- -DnoBallCollide=true -- do not do ball-to-ball collision checks.
- -Dballs=# -- change the number of balls to some integer value. (default is 16)
- -Dwidth=# -- change the width of the window to some integer value. (default is 500)
- -Dheight=# -- change the height of the window to some integer value. (default is 300)
- -Dadaptive=true -- instead of maintaining a set number of balls, try to maintain a steady frame rate (see targetFPS) Not compatible with sync=true.
- -DtargetFPS=# -- set the target frame rate (fps) for adaptive mode. (default is 200)
-
Constructor Summary
ConstructorDescriptionConstructs the example class, also creating the native window and GL surface. -
Method Summary
Modifier and TypeMethodDescriptionA scene should be able to handle a pick execution as it is the only thing that has a complete picture of the scenegraph(s).static void
boolean
renderUnto
(Renderer renderer)
-
Constructor Details
-
BubbleMarkExample
public BubbleMarkExample()Constructs the example class, also creating the native window and GL surface.
-
-
Method Details
-
main
-
renderUnto
- Specified by:
renderUnto
in interfaceScene
- Parameters:
renderer
- the renderer- Returns:
true
if a render occurred and we should swap the buffers.
-
doPick
Description copied from interface:Scene
A scene should be able to handle a pick execution as it is the only thing that has a complete picture of the scenegraph(s).
-