diff options
Diffstat (limited to 'src/test')
5 files changed, 14 insertions, 7 deletions
diff --git a/src/test/com/jogamp/opengl/test/android/NEWTGearsES2Activity.java b/src/test/com/jogamp/opengl/test/android/NEWTGearsES2Activity.java index 3e9869c95..6abb0b354 100644 --- a/src/test/com/jogamp/opengl/test/android/NEWTGearsES2Activity.java +++ b/src/test/com/jogamp/opengl/test/android/NEWTGearsES2Activity.java @@ -71,11 +71,13 @@ public class NEWTGearsES2Activity extends NewtBaseActivity { System.err.println("ScreenMode Changed: "+sm); } }); - glWindow.setVisible(true); Animator animator = new Animator(glWindow); animator.setUpdateFPSFrames(60, System.err); // animator.setRunAsFastAsPossible(true); setAnimator(animator); + // glWindow.setSkipContextReleaseThread(animator.getThread()); + + glWindow.setVisible(true); Log.d(TAG, "onCreate - X"); } diff --git a/src/test/com/jogamp/opengl/test/android/NEWTGearsES2TransActivity.java b/src/test/com/jogamp/opengl/test/android/NEWTGearsES2TransActivity.java index 84ff0a5a7..691151ef3 100644 --- a/src/test/com/jogamp/opengl/test/android/NEWTGearsES2TransActivity.java +++ b/src/test/com/jogamp/opengl/test/android/NEWTGearsES2TransActivity.java @@ -67,10 +67,12 @@ public class NEWTGearsES2TransActivity extends NewtBaseActivity { System.err.println("ScreenMode Changed: "+sm); } }); - glWindow.setVisible(true); Animator animator = new Animator(glWindow); animator.setUpdateFPSFrames(60, System.err); setAnimator(animator); + // glWindow.setSkipContextReleaseThread(animator.getThread()); + + glWindow.setVisible(true); Log.d(TAG, "onCreate - X"); } diff --git a/src/test/com/jogamp/opengl/test/android/NEWTRedSquareES2Activity.java b/src/test/com/jogamp/opengl/test/android/NEWTRedSquareES2Activity.java index 70d1c382d..51cddd523 100644 --- a/src/test/com/jogamp/opengl/test/android/NEWTRedSquareES2Activity.java +++ b/src/test/com/jogamp/opengl/test/android/NEWTRedSquareES2Activity.java @@ -70,11 +70,13 @@ public class NEWTRedSquareES2Activity extends NewtBaseActivity { System.err.println("ScreenMode Changed: "+sm); } }); - glWindow.setVisible(true); Animator animator = new Animator(glWindow); animator.setUpdateFPSFrames(60, System.err); // animator.setRunAsFastAsPossible(true); setAnimator(animator); + // glWindow.setSkipContextReleaseThread(animator.getThread()); + glWindow.setVisible(true); + Log.d(TAG, "onCreate - X"); } diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java index 573d92ad9..a2e470617 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java @@ -111,7 +111,7 @@ public class GearsES2 implements GLEventListener { gl.glEnable(GL.GL_DEPTH_TEST); st = new ShaderState(); - st.setVerbose(true); + // st.setVerbose(true); final ShaderCode vp0 = ShaderCode.create(gl, GL2ES2.GL_VERTEX_SHADER, 1, this.getClass(), "shader", "shader/bin", "gears"); final ShaderCode fp0 = ShaderCode.create(gl, GL2ES2.GL_FRAGMENT_SHADER, 1, this.getClass(), diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java index 64eb518fb..04897eda5 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java @@ -152,14 +152,15 @@ public class TestGearsES2NEWT extends UITestCase { } }); + animator.setUpdateFPSFrames(60, System.err); + animator.start(); + // glWindow.setSkipContextReleaseThread(animator.getThread()); + glWindow.setVisible(true); System.err.println("size/pos: "+f_glWindow.getX()+"/"+f_glWindow.getY()+" "+f_glWindow.getWidth()+"x"+f_glWindow.getHeight()+", "+f_glWindow.getInsets()); System.err.println("chosen: "+glWindow.getChosenCapabilities()); - animator.setUpdateFPSFrames(60, System.err); - animator.start(); - while(!quitAdapter.shouldQuit() && animator.isAnimating() && animator.getTotalFPSDuration()<duration) { Thread.sleep(100); } |