Login  Register

Re: Multithready between AWT and JOGL

Posted by Sven Gothel on Sep 22, 2011; 7:02am
URL: https://forum.jogamp.org/Multithready-between-AWT-and-JOGL-tp3356928p3357894.html

On Thursday, September 22, 2011 05:16:56 AM millerni456 [via jogamp] wrote:
>
> Good news is I think I understand what your post is about. I was able to
> create a window using the NEWT libraries and render a simple triangle. On
> the window (which was a JFrame) I had a JSlider that changed the field of
> view in the gluPerspective method. However when stateChanged() method is
> called from the slider, I invoke a new GLRunnable and execute the GLContext
> code in there.
>
great

> On another note, should I be testing this with input (i.e. mouse/keyboard?)
> And what Ideas of integrating JInput with this?
> I did attach a controller to an application I made but this made it lag
> alot. The controller only affected my camera which was updated under the
> GLContext thread.

Ok, now try to use NewtCanvasAWT to avoid any lag in the Animator
and rendering loop. Then you should be fine I hope.
(Due to the AWT EDT restriction)

If there is still a huge lag, we will work on it.

~Sven