From 090ea75c8e3e14fe7c68b5ed9a183c917e881258 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 11 Jun 2011 05:08:38 +0200 Subject: TestGLSLShaderState01 PerfTest: 2min timeout / swapInterval 0 / start counter after warmup --- .../junit/jogl/glsl/TestGLSLShaderState01NEWT.java | 31 +++++++++++++--------- .../junit/jogl/glsl/TestGLSLShaderState02NEWT.java | 14 ++++++---- 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/glsl/TestGLSLShaderState01NEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/glsl/TestGLSLShaderState01NEWT.java index 1cd49a41f..484734b28 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/glsl/TestGLSLShaderState01NEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/glsl/TestGLSLShaderState01NEWT.java @@ -173,11 +173,11 @@ public class TestGLSLShaderState01NEWT extends UITestCase { NEWTGLContext.destroyWindow(winctx); } - @Test + @Test(timeout=120000) public void testShaderState00PerformanceSingleKeepEnabled() throws InterruptedException { testShaderState00PerformanceSingle(false); } - @Test + @Test(timeout=120000) public void testShaderState00PerformanceSingleToggleEnable() throws InterruptedException { testShaderState00PerformanceSingle(true); } @@ -240,17 +240,20 @@ public class TestGLSLShaderState01NEWT extends UITestCase { st.uniform(gl, pmvMatrixUniform); gl.glViewport(0, 0, drawable.getWidth(), drawable.getHeight()); - long t0 = System.currentTimeMillis(); - int frames; + gl.setSwapInterval(0); // validation .. GLSLMiscHelper.displayVCArrays(drawable, gl, st, toggleEnable, vertices0, colors0, toggleEnable, 1, 0); // warmup .. - for(frames=0; frames