Posted by
Sven Gothel on
Nov 10, 2013; 2:14pm
URL: https://forum.jogamp.org/Onscreen-vs-offscreen-performances-tp4030556p4030564.html
On 11/10/2013 01:55 PM, Manu [via jogamp] wrote:
> Thanks for advices.
>
> So julien, if I follow you, using Java 3D under Mac OS X will give the same
> performances with Canvas3D and JCanvas3D, right?
> Was the FBO forced only from Java 3D 1.6, or was it forced in Java 3D 1.5.2
> too?
The JOGL story ..
On OSX >= 10.6 (?) w/ Java7 all AWT related resources must use FBO offscreen
rendering, i.e. GLCanvas and even NewtCanvasAWT.
Here a shared GL context is used for compositioning the FBO texture
w/ the 'global' CALayer using OpenGL.
GLJPanel uses an offscreen FBO as well, however compositioning is performed
using Java2D .. and hence might be slower (for bigger screens).
Further more .. we have to flip the image using GLSL or memory copying.
I will add a flag in GLJPanel to allow users to skip the vertical flip,
so users need to take care of the vertical orientation themselves ..
Pure NEWT would allow to have an onscreen drawable, as Julien described.
Java3D uses JOGL .. but I don't know the details (GLCanvas or GLJPanel).
Hope this overview helps a bit.
> Emmanuel Puybaret
>