Login  Register

Re: Reg:Jogl Display callback.

Posted by Sven Gothel on Nov 15, 2013; 9:51am
URL: https://forum.jogamp.org/Reg-Jogl-Display-callback-tp4030633p4030635.html

On 11/15/2013 06:03 AM, anandcta123 [via jogamp] wrote:

> Dear All,
>
> I am working on Jogl GLJPanel video display using Swing JDesktopPane and
> JInternalFrames. Actually I need to display video. But I am suffering from fps
> rate of FPSAnimator which will call GLEventListner display function. Till 10
> GLJPanel's (One for each JInternalFrame), I can get 30fps rate. But as it
> increases beyond like for 12 GLJPanel's, fps rate will decrease's to 25fps and
> for 16 GLJPanel's fps rate will decrease to 20fps. Here in GLJPanel display
> function, currently I am not calling any GL functions to draw video frames (It
> will only call glClear). Please suggest whether this is default behaviour of
> JOGL or any way is there to fix this.
>  
GLJPanel employs many extra tasks to bring the GL rendered pixels
to the visible surface - pls read the GLJPanel API documentation.

Recently a feature to skip vertical flipping has been introduced
and will be part of 2.1.3:
  <http://forum.jogamp.org/GLJPanel-Skip-Vertical-Flip-Performance-Tweak-Bug-904-td4030632.html>

Other than that GLJPanel still needs to ReadPixels and AWT
will composite the pixels - hence it will always be slower
than direct rendering onscreen, or native compositioning (OSX).

Further more, the OpenGL driver may reduce performance,
i.e. one of the applet-tests[1,2] using multiple
GLJPanels works slow (~ 10fps) on X11-NV, OSX 10.7-NV,
but quite fast (60 fps) on OSX 10.9-NV and Windows-NV.

This might be related to vertical synchronization applied to all GLEventListeners,
but may also be due to slow FBO handling or AWT compositioning.

General performance is currently under investigation and if you like to join
this task and share your results and patches, your are very welcome.

[1] http://jogamp.org/deployment/jogamp-current/jogl-test-applets.html
[2] http://jogamp.org/deployment/jogamp-current/jogl-applet-bug848_glcanvas01.html

~Sven

--
health & wealth
mailto:[hidden email] ; http://jausoft.com
land : +49 (471) 4707742 ; fax : +49 (471) 4707741
Timezone CET: PST+9, EST+6, UTC+1


signature.asc (911 bytes) Download Attachment