Login  Register

Re: transfer images from TextureData to a Texture off of the EDT in JOGL

Posted by Marco on Aug 01, 2014; 11:27am
URL: https://forum.jogamp.org/transfer-images-from-TextureData-to-a-Texture-off-of-the-EDT-in-JOGL-tp4032678p4032681.html

Hi,

thankyou for your hints.

I now compressing the data to DDS in another thread on the fly, which works really good for me. At least on my machine texture loading "freezes" are gone.

I allready realizes that I need to make thread the current context for GL. Even loading in another thread, I still got trouble since some other jogl parts running on the ui thread seesms to ask for a global lock, and finally waiting for this lock still causes UI freeze, even the work is done on another thread.

I knew that AWT needs to have everything in the event dispatch thread. but I don't know why just loading data inside jogl needs to set such a global lock which prevent me from doing real multi threading?

thx
-marco