Re: GLJPanel Poor Performance

Posted by Sven Gothel on
URL: https://forum.jogamp.org/GLJPanel-Poor-Performance-tp3124120p3124266.html

On Thursday, June 30, 2011 03:05:06 AM makoto1337 [via jogamp] wrote:

>
> I am using the netbeans platform and so I can't use GLCanvas, since it can't
> be properly resized and on Windows it has an error everytime the user drags
> the containing window to another location in the platform.
>
> To solve those issues, I switched to the GLJPanel. Now everything is really
> slow and interaction with the mouse via zoom, etc, seems really jerky.
>
> My netbeans module component that has the GLJPanel is at
> https://github.com/mtakemiya/BMIDesktop/blob/5ab945cb190fb82bd83f38663071b6c45a950d59/timeline/src/jp/atr/dni/bmi/desktop/timeline/TimelineTopComponent.java
>
> Am I doing something obviously wrong? What is a good way to improve the
> performance so this is usable? Even with almost nothing in my render method,
> it is really slow!
>

- http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/awt/GLCanvas.html#java2dgl

- http://jogamp.org/wiki/index.php/Jogl_FAQ#Why_using_Swing_for_high_performance_is_not_a_good_idea_.3F

If you cannot use GLJPanel in an hw accelerated manner (usually the case),
you may like to try our NEWTCanvasAWT:

- http://jausoft.com/blog/2010/11/28/newt-threading-overview/

Hope this is helpful.

~Sven