I am trying to multithread my iOS application to make it more responsive. I Would like one thread to handle all of the OpenGL stuff like rendering and loading buffer objects and textures etc. But I am having difficulties achieving this.
I know that a thread should have it's own context in order to call gl functions without risking undefined behaviour. So in my app, I create a new context in the OpenGL dedicated thread, and then set it to the current context. Then I do all the loading and rendering on that thread.
The thing I am getting confused about is the GLKView context. What do I set that to? Do I set it to the context that I created in my new thread? Or do I need to create another context on the main thread and assign that to it? Then make these two contexts share a sharegroup?