Search code examples
multithreadinggoogle-nativeclient

animation loop in a separate thread, Native Client


In Native Client, is it possible to set up animation loop in a separate thread? I was not able to find any examples that do this.


Solution

  • If you mean OpenGL ES 2.0 based animations, then NO, you have to make all OpenGL calls from the main thread. But you can keep different threads for calculating framecounters or other calculations.

    Only restriction is to make all OpenGL calls from main thread.