Upload and render concurrently

Started by Thomas., March 16, 2013, 10:49:20 AM

Previous topic - Next topic

Thomas.

How can I upload textures to GPU and render concurrently?

EgonOlsen

You can't. OpenGL is state based. Uploading textures changes this state and if you are rendering in between, all goes boom.

Thomas.

#2
But full HD movie can play in window and together render something on background (or upload textures). And it has no any dependency on CPU usage...



edit: If someone wanted my Floating calculator, I can upload to the play store...

EgonOlsen

But that's not happening in the same context. You can't mix states within one context. If you, for example, are rendering using one texture, you can't upload another one in parallel, because you would have to switch texture state to do that, which will screw up the rendering. In addition, some operations are not allowed within certain states.