Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualKoehler

Posted 27 September 2012 - 09:41 AM

I can't say for sure that this will work on Android, but you could try to handle this by running two threads, making once context current on each at initialization, and synchronizing them so they do not attempt to draw at the same time (via a semaphore). That should avoid the eglMakeCurrent overhead, and synchronization should minimize pipeline stalls due to rendering from separate threads. Do not try to draw from both at the same time, as that will cause a great deal of slowdown.

#1Koehler

Posted 27 September 2012 - 09:40 AM

I can't say for sure that this will work on Android, but you could try to handle this by running two threads, making once context current on each at initializaiton, and synchronizing them so they do not attempt to draw at the same time (via a semaphore). That should avoid the eglMakeCurrent overhead, and synchronization should minimize pipeline stalls due to rendering from separate threads. Do not try to draw from both at the same time, as that will cause a great deal of slowdown.

PARTNERS