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 ;
62 }
else if(args[i].equals(
"-forceExclusiveTest")) {
63 testExclusiveWithAWT =
true;
66 System.err.println(
"duration "+duration);
67 System.err.println(
"showFPS "+showFPS);
68 System.err.println(
"swapInterval "+swapInterval);
69 System.err.println(
"testExclusiveWithAWT "+testExclusiveWithAWT);
ExclusiveContextThread base implementation to test correctness of the ExclusiveContext feature and An...
ExclusiveContextThread FPS Animator to test correctness of the ExclusiveContext feature and FPSAnimat...
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...