www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Thomas. on March 16, 2013, 10:49:20 am

Title: Upload and render concurrently
Post by: Thomas. on March 16, 2013, 10:49:20 am
How can I upload textures to GPU and render concurrently?
Title: Re: Upload and render concurrently
Post by: EgonOlsen on March 16, 2013, 11:52:42 am
You can't. OpenGL is state based. Uploading textures changes this state and if you are rendering in between, all goes boom.
Title: Re: Upload and render concurrently
Post by: Thomas. on March 16, 2013, 01:14:09 pm
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...

(http://s10.postimage.org/477wtawk5/device_2013_03_16_130540.jpg) (http://postimage.org/image/477wtawk5/)

edit: If someone wanted my Floating calculator, I can upload to the play store...
Title: Re: Upload and render concurrently
Post by: EgonOlsen on March 16, 2013, 06:27:21 pm
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.