29package com.jogamp.opengl.test.junit.jogl.acore.ect;
31import java.io.IOException;
33import com.jogamp.opengl.test.junit.util.MiscUtils;
34import com.jogamp.opengl.util.AnimatorBase;
35import com.jogamp.opengl.util.FPSAnimator;
37import org.junit.FixMethodOrder;
38import org.junit.runners.MethodSorters;
43@FixMethodOrder(MethodSorters.NAME_ASCENDING)
51 public static void main(
final String args[])
throws IOException {
52 for(
int i=0; i<args.length; i++) {
53 if(args[i].equals(
"-time")) {
56 }
else if(args[i].equals(
"-vsync")) {
59 }
else if(args[i].equals(
"-showFPS")) {
61 showFPS =
MiscUtils.
atoi(args[i], showFPS ? 1 : 0) == 0 ? false : true ;
64 System.err.println(
"duration "+duration);
65 System.err.println(
"showFPS "+showFPS);
66 System.err.println(
"swapInterval "+swapInterval);
ExclusiveContextThread base implementation to test performance impact of the ExclusiveContext feature...
ExclusiveContextThread base implementation to test performance impact of the ExclusiveContext feature...
AnimatorBase createAnimator()
static void main(final String args[])
static int atoi(final String str, final int def)
static long atol(final String str, final long def)
Base implementation of GLAnimatorControl
An Animator subclass which attempts to achieve a target frames-per-second rate to avoid using all CPU...