org.jbox2d.testbed.timingTests
Class PistonBenchmark

java.lang.Object
  extended by org.jbox2d.testbed.timingTests.PistonBenchmark
All Implemented Interfaces:
SimpleTest

public class PistonBenchmark
extends Object
implements SimpleTest

Benchmark - piston example (constantly bumping a bunch of circles and boxes). Should be a decent mix of circle and polygon collisions/contacts, though very little joint work. Rev 129 performance summary (details below class definition in source code): No bullets: 1.6 Average FPS: 390.21332 1.6 -server Average FPS: 470.05365 (131+: with 1024M heap, 1.6 -server: 578.7675 FPS!) All bullets: 1.6 Average FPS: 185.98808 1.6 -server Average FPS: 221.55266 (C++ performance for no bullets is ~708 FPS, for comparison's sake)

Author:
eric

Field Summary
static boolean BULLETS
           
 RevoluteJoint m_joint1
           
 PrismaticJoint m_joint2
           
 
Constructor Summary
PistonBenchmark()
           
 
Method Summary
 void create(World world)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BULLETS

public static boolean BULLETS

m_joint1

public RevoluteJoint m_joint1

m_joint2

public PrismaticJoint m_joint2
Constructor Detail

PistonBenchmark

public PistonBenchmark()
Method Detail

create

public void create(World world)
Specified by:
create in interface SimpleTest

toString

public String toString()
Specified by:
toString in interface SimpleTest
Overrides:
toString in class Object