Login  Register

Re: Reg:Jogl Display callback.

Posted by Sven Gothel on Nov 18, 2013; 6:46pm
URL: https://forum.jogamp.org/Reg-Jogl-Display-callback-tp4030633p4030650.html

On 11/15/2013 10:51 AM, Sven Gothel wrote:

> 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.
Only using V-Sync on one of many GLJPanel solves
performance degradation w/ X11/NV:
  <http://jogamp.org/deployment/archive/master/gluegen_751-joal_502-jogl_1153-jocl_879-signed/jogl-applet-bug848_glcanvas01.html>

Yes, this is the new RC:
  2.1.3-rc-20131117:
    - our-maven
    - http://jogamp.org/deployment/archive/master/gluegen_751-joal_502-jogl_1153-jocl_879/
    - http://jogamp.org/deployment/archive/master/gluegen_751-joal_502-jogl_1153-jocl_879-signed/

~Sven

>
> 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
>
>> Thanks and Regards,
>> Anand


signature.asc (911 bytes) Download Attachment