Class BubbleMarkExample

java.lang.Object
com.ardor3d.example.benchmark.ball.BubbleMarkExample
All Implemented Interfaces:
Scene

public class BubbleMarkExample extends Object implements 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 Details

    • BubbleMarkExample

      public BubbleMarkExample()
      Constructs the example class, also creating the native window and GL surface.
  • Method Details

    • main

      public static void main(String[] args)
    • renderUnto

      public boolean renderUnto(Renderer renderer)
      Specified by:
      renderUnto in interface Scene
      Parameters:
      renderer - the renderer
      Returns:
      true if a render occurred and we should swap the buffers.
    • doPick

      public PickResults doPick(Ray3 pickRay)
      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).
      Specified by:
      doPick in interface Scene
      Parameters:
      pickRay - the pick ray
      Returns:
      the pick results