Original Post
Hi,
I have a big question. Let say I have two threads. The first is drawing what I need with OpenGL and the second is updating the data for each frame. But if most of the drawing is done by the fragment shader, is it risky to update the uniforms variables with the second thread ? Or they should be updated by the rendering thread before the full execution, in whatever the state they are left by the second thread ?
Thanks
W
P.S.: This question applies also for Android with OpenGL ES. I just finished some test with the shaders, and it's very slow.. farther than the video card on a desktop. I was expecting something slower, but not that much.
I have a big question. Let say I have two threads. The first is drawing what I need with OpenGL and the second is updating the data for each frame. But if most of the drawing is done by the fragment shader, is it risky to update the uniforms variables with the second thread ? Or they should be updated by the rendering thread before the full execution, in whatever the state they are left by the second thread ?
Thanks
W
P.S.: This question applies also for Android with OpenGL ES. I just finished some test with the shaders, and it's very slow.. farther than the video card on a desktop. I was expecting something slower, but not that much.