GLCanvas.display() and threading! Confusion!

Hi,

I made a modified version of the Animation class to perform rendering in a background thread. My question is this:

When my animation thread calls GLCanvas.display() does that display method return before or after the frame has been rendered. I have read that in build b10 the threading model has changed in JOGL, and I’m confused. Does this mean that all JOGL rendering takes place in the AWT thread, even if I create my own thread.

I need to set variables in my render class before a frame is rendered, and then read them afterwards. If the GLCanvas.display() returns before a frame is rendered, then how do I pass data to my GLEventListener before/after each frame? In a safe way.

Thanks,

GLCanvas.display() is synchronous; it will not return before the display is complete. The only technical issue here is that your GLEventListener’s display() method may be invoked on another thread than the one which called GLCanvas.display(). Most applications should not see any side-effects from this.