aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-04-28 11:23:32 +0200
committerSven Gothel <[email protected]>2011-04-28 11:23:32 +0200
commit23bc6204b5e518e397e4ee4cdbe06f789970ee4f (patch)
treede75004c4d09a7e081fe9a55d5a470ac8825fe3d /src
parent09a63b963c2bd4212a072c373b36511478721daa (diff)
GLRunnable Injection Thread Test: Slow down injection to 10Hz
Diffstat (limited to 'src')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/parenting/GLRunnableDummy.java2
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting01cSwingAWT.java4
2 files changed, 3 insertions, 3 deletions
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) {}
}
}