diff options
author | Sven Gothel <[email protected]> | 2013-11-09 11:13:11 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-11-09 11:13:11 +0100 |
commit | edf80417e001e480b35636b8db379fd1bf63b8e1 (patch) | |
tree | 49bc5a483bf70f9304a7bac97c90becf5c637631 /src/test/com | |
parent | d896598b0b0c79511b3a00b65467cad2aad41694 (diff) |
TestPerf001GLJPanelInit02AWT: Same size for !overlap and overlap
Diffstat (limited to 'src/test/com')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/perf/TestPerf001GLJPanelInit02AWT.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/perf/TestPerf001GLJPanelInit02AWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/perf/TestPerf001GLJPanelInit02AWT.java index 38ed349b1..18ec289d8 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/perf/TestPerf001GLJPanelInit02AWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/perf/TestPerf001GLJPanelInit02AWT.java @@ -73,16 +73,14 @@ public class TestPerf001GLJPanelInit02AWT extends UITestCase { final int frameCount, final boolean initMT, final boolean useGLJPanel, final boolean useGLCanvas, final boolean useAnim, final boolean overlap) { final GLAnimatorControl animator = useAnim ? new Animator() : null; - final int cols = (int)Math.round(Math.sqrt(frameCount)); - final int rows = frameCount / cols; final int eWidth, eHeight; - if( overlap ) { - eWidth = width; - eHeight = height; - } else { + { + final int cols = (int)Math.round(Math.sqrt(frameCount)); + final int rows = frameCount / cols; eWidth = width/cols-32; eHeight = height/rows-32; } + System.err.println("Frame size: "+width+"x"+height+" -> "+frameCount+" x "+eWidth+"x"+eHeight+", overlap "+overlap); final JFrame[] frame = new JFrame[frameCount]; final long[] t = new long[10]; |