Hi,
I have a multithreaded application.
All calculations are performed in threads and then in the main thread the opengl commands are executed.
This includes uploading textures. The odd thing is, that most of the time this texture uploading takes 0.003-0.005 seconds but occasionally it takes 0.012 and more seconds to upload. This makes animations going a bit choppy.
So I was wondering: is it possible somehow to upload textures from a different thread? Or is there a common explanation for this irregularity?
Please note that the texture is always the same size, comes from the same memory location and that always the same opengl commands are executed (translate/rotate/glTexSubImage2D/create quad). Also in my testcase no other threads are running.