Package org.jbox2d.profile
Class PistonBenchmark
java.lang.Object
org.jbox2d.profile.BasicPerformanceTest
org.jbox2d.profile.SettingsPerformanceTest
org.jbox2d.profile.PistonBenchmark
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.
NOTE: some iterations cause objects to fall through the piston
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
static int
static int
static float
static int
Fields inherited from class org.jbox2d.profile.BasicPerformanceTest
times
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jbox2d.profile.SettingsPerformanceTest
getTestName, runTest
Methods inherited from class org.jbox2d.profile.BasicPerformanceTest
getTestTime, go, printf, println, printResults
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
iters
public static int iters -
frames
public static int frames -
timeStep
public static float timeStep -
velIters
public static int velIters -
posIters
public static int posIters -
m_joint1
-
m_joint2
-
world
-
-
Constructor Details
-
PistonBenchmark
public PistonBenchmark()
-
-
Method Details
-
main
public static void main(java.lang.String[] args) -
runBenchmarkWorld
public void runBenchmarkWorld()- Specified by:
runBenchmarkWorld
in classSettingsPerformanceTest
-
getFrames
public int getFrames(int testNum) - Overrides:
getFrames
in classBasicPerformanceTest
-