Skip to content
The Jenkins Controller is preparing for shutdown. No new builds can be started.
Unstable

Changes

Summary

  1. GLAutoDrawable/AnimatorBase: Add ExclusiveContextThread (ECT) feature; (details)
  2. Minor: GLWindow fix size validation; GLContextImpl: Remove hold ctx lock (details)
  3. Add old Olympic demo from GL4Java - Make it use ES1 and suitable for (details)
Commit 224fab1b2c71464826594740022fdcbe278867dc by Sven Gothel
GLAutoDrawable/AnimatorBase: Add ExclusiveContextThread (ECT) feature; AnimatorBase: Add setModeBits/MODE_EXPECT_AWT_RENDERING_THREAD; FPSAnimator: Make transactions deterministic.

ExclusiveContextThread (ECT) allows user to dedicate a GLContext to a given thread.
Only the ECT will be allowed to claim the GLContext, hence releasing must be done on the ECT itself.

The core feature is accessible via GLAutoDrawable, while it can be conveniently enabled and disabled
via an AnimatorBase implementation. The latter ensures it's being released on the ECT and waits for the result.

Note that ECT cannot be guaranteed to work correctly w/ native (heavyweight) AWT components
due to resource locking and AWT-EDT access. This is disabled in all new tests per default and
noted on the API doc.

Note: 'Animator transaction' == start(), stop(), pause(), resume().

- Add ExclusiveContextThread (ECT) feature
  - GLAutoDrawable NEW:
    - Thread setExclusiveContextThread(Thread t)
    - Thread getExclusiveContextThread()

  - AnimatorBase NEW:
    - Thread setExclusiveContext(Thread t)
    - boolean setExclusiveContext(boolean enable)
    - boolean isExclusiveContextEnabled()
    - Thread getExclusiveContextThread()

- AnimatorBase: Add setModeBits/MODE_EXPECT_AWT_RENDERING_THREAD
  Allows user to pre-determine whether AWT rendering is expected before starting the animator.
  If AWT is excluded, a more simple and transaction correct impl. will be used.

- FPSAnimator: Make transactions deterministic.
  FPSAnimator previously did not ensure whether a transaction was completed.
  A deterministic transaction is required to utilize ECT.
  FPSAnimator now uses same mechanism like Animator to ensure completeness,
  i.e. Condition and 'finishLifecycleAction(..)'. Both are moved to AnimatorBase.

Tested manually on Linux/NV, Linux/AMD, Windows/NV and OSX/NV.
  - All new tests validated correctness.
  - All new tests shows an performance increase of ~3x w/ single GLWindow, where multiple GLWindows don't show a perf. increase.
The file was modified src/jogl/classes/jogamp/opengl/GLDrawableHelper.java (diff)
The file was modified make/scripts/tests.sh (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/util/Animator.java (diff)
The file was modified src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/awt/TestGearsES2AWT.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/GLContext.java (diff)
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/acore/ExclusiveContextBase00.java (diff)
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/acore/ExclusiveContextBase00AWT.java (diff)
The file was modified src/test/com/jogamp/opengl/test/junit/jogl/demos/es1/newt/TestGearsES1NEWT.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/GLAutoDrawable.java (diff)
The file was modified src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java (diff)
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/acore/TestExclusiveContext02FPSAnimNEWT.java (diff)
The file was modified src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RedSquareES2.java (diff)
The file was modified src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/awt/GLJPanel.java (diff)
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/acore/ExclusiveContextBase10AWT.java (diff)
The file was modified make/scripts/tests-x64.bat (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java (diff)
The file was modified src/jogl/classes/jogamp/opengl/GLAutoDrawableBase.java (diff)
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/acore/ExclusiveContextBase00NEWT.java (diff)
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/acore/TestExclusiveContext02FPSAnimAWT.java (diff)
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/acore/TestExclusiveContext11VSyncAnimNEWT.java (diff)
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/acore/ExclusiveContextBase10NEWT.java (diff)
The file was modified src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java (diff)
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/acore/TestExclusiveContext01VSyncAnimAWT.java (diff)
The file was modified src/test/com/jogamp/opengl/test/junit/jogl/acore/InitConcurrentBaseNEWT.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/awt/GLCanvas.java (diff)
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/acore/TestExclusiveContext12FPSAnimNEWT.java (diff)
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/acore/ExclusiveContextBase10.java (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java (diff)
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/acore/TestExclusiveContext01VSyncAnimNEWT.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/GLAnimatorControl.java (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/util/AnimatorBase.java (diff)
Commit bdc2e57ffc91d88e187ded8c42335710448f50f0 by Sven Gothel
Minor: GLWindow fix size validation; GLContextImpl: Remove hold ctx lock count constraints at destroy.
The file was modified src/jogl/classes/jogamp/opengl/GLContextImpl.java (diff)
The file was modified src/newt/classes/com/jogamp/newt/opengl/GLWindow.java (diff)
Commit cb3e3638179a360a07325a908da7593f8e285f3c by Sven Gothel
Add old Olympic demo from GL4Java - Make it use ES1 and suitable for FixedFunctionEmul.
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/demos/es1/newt/TestOlympicES1NEWT.java (diff)
The file was addedsrc/test/com/jogamp/opengl/test/junit/jogl/demos/es1/OlympicES1.java (diff)