Login  Register

Re: Multithready between AWT and JOGL

Posted by millerni456 on Sep 23, 2011; 7:22pm
URL: https://forum.jogamp.org/Multithready-between-AWT-and-JOGL-tp3356928p3362805.html

Here's my new code:


//this method is called via mouse click/press
public void schedulePickSelection()
{
    GLRunnable r = new GLRunnable()
    {
        public void run(GLAutoDrawable d)
        {
            select(d.getGL().getGL2());//this performs a selection in the OpenGL Context Thread.
        }
    }
}


Although this works fine, my code seems to get stuck  when I move the mouse (which triggers this method). It will perform the pick selection, but each time it picks, the moving geometry freezes, and sometimes this method will not stop calling.