From 23bc6204b5e518e397e4ee4cdbe06f789970ee4f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 28 Apr 2011 11:23:32 +0200 Subject: GLRunnable Injection Thread Test: Slow down injection to 10Hz --- .../com/jogamp/opengl/test/junit/newt/parenting/GLRunnableDummy.java | 2 +- .../opengl/test/junit/newt/parenting/TestParenting01cSwingAWT.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/test/com/jogamp/opengl/test/junit/newt/parenting/GLRunnableDummy.java b/src/test/com/jogamp/opengl/test/junit/newt/parenting/GLRunnableDummy.java index d518616b1..620219dc7 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/parenting/GLRunnableDummy.java +++ b/src/test/com/jogamp/opengl/test/junit/newt/parenting/GLRunnableDummy.java @@ -40,7 +40,7 @@ public class GLRunnableDummy implements GLRunnable { float r=0.0f; float g=0.0f; float b=0.0f; - float d=0.001f; + float d=0.1f; public void run(GLAutoDrawable drawable) { GL2ES1 gl = drawable.getGL().getGL2ES1(); diff --git a/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting01cSwingAWT.java b/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting01cSwingAWT.java index d7f3192bb..949fb29df 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting01cSwingAWT.java +++ b/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting01cSwingAWT.java @@ -95,7 +95,7 @@ public class TestParenting01cSwingAWT extends UITestCase { { try { _glWindow1.invoke(true, _glRunnable); - Thread.yield(); + Thread.sleep(100); } catch (Throwable t) {} } } @@ -206,7 +206,7 @@ public class TestParenting01cSwingAWT extends UITestCase { { try { _glWindow1.invoke(true, _glRunnable); - Thread.yield(); + Thread.sleep(100); } catch (Throwable t) {} } } -- cgit v1.2.3