Login  Register

Re: How to MultiThread in JOGL

Posted by gouessej on Nov 01, 2012; 6:57pm
URL: https://forum.jogamp.org/How-to-MultiThread-in-JOGL-tp4026697p4026714.html

Hi

You can use the method invoke(boolean,GLRunnable) to post runnables on the OpenGL queue. You can try to make the OpenGL context current on different threads (and release it when you don't need it anymore) but some drivers and/or operating systems might simply not support it and it has a non negligible cost. You can create several shared contexts and use one of them per thread too.
Julien Gouesse | Personal blog | Website