From fe2dda3de3d679573fd6176cd639304d166be4b6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 24 Feb 2012 05:04:51 +0100 Subject: TestInitConcurrentNEWT: Reduce max threads (16 -> 8) on ARM, also use vsync to reduce load --- .../opengl/test/junit/jogl/acore/TestInitConcurrentNEWT.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/test/com') 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 { -- cgit v1.2.3