aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-02-24 05:04:51 +0100
committerSven Gothel <[email protected]>2012-02-24 05:04:51 +0100
commitfe2dda3de3d679573fd6176cd639304d166be4b6 (patch)
treebab5cf6d31e26ddcf6394807d4b5c4c8a1945fe3
parentbd1eebacdb0bf426ac122867ed7e468fffbead1a (diff)
TestInitConcurrentNEWT: Reduce max threads (16 -> 8) on ARM, also use vsync to reduce load
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/acore/TestInitConcurrentNEWT.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestInitConcurrentNEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestInitConcurrentNEWT.java
index fc025d023..f8cbb0a29 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestInitConcurrentNEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestInitConcurrentNEWT.java
@@ -39,6 +39,7 @@ import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
+import com.jogamp.common.os.Platform;
import com.jogamp.newt.NewtFactory;
import com.jogamp.newt.Window;
import com.jogamp.newt.opengl.GLWindow;
@@ -90,7 +91,7 @@ public class TestInitConcurrentNEWT extends UITestCase {
glWindow.setTitle("Task "+id);
glWindow.setPosition(x + insets.getLeftWidth(), y + insets.getTopHeight() );
- glWindow.addGLEventListener(new GearsES2(0));
+ glWindow.addGLEventListener(new GearsES2(1));
Animator animator = new Animator(glWindow);
@@ -211,7 +212,11 @@ public class TestInitConcurrentNEWT extends UITestCase {
@Test
public void test16SixteenThreads() throws InterruptedException {
- runJOGLTasks(16);
+ if( Platform.getCPUFamily() == Platform.CPUFamily.ARM ) {
+ runJOGLTasks(8);
+ } else {
+ runJOGLTasks(16);
+ }
}
public static void main(String args[]) throws IOException {