On Tuesday, September 24, 2013 at 12:36 PM, nathan ramsey wrote:
Is there any documentation on the threading configuration set up by Apportable? E.g. does the iOS main thread equate to the Android UI thread?I am trying to cross-compile an iOS based OpenGL library which renders from background threads, but running up against EGL context constraints. I am wondering, however, if I can just treat the iOS main thread *as* a background thread, if perhaps the Android UI thread is a separate thread. I am not sure though. On what thread with the EGL surface be created when using CAEAGLLayer? Related SO question of mine here: http://stackoverflow.com/questions/18990366/apportable-how-do-i-run-opengl-on-a-background-thread
--
You received this message because you are subscribed to the Google Groups "Apportable discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-disc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-discuss+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-disc...@googlegroups.com.
be VERY careful about using libdispatch and contexts (ideally you should use the NSThread methods for running things on the main thread)
09-27 12:03:27.477 12407-12452/com.apportable.Spin I/NSLog﹕ initing background renderer
09-27 12:03:27.477 12407-12452/com.apportable.Spin E/libEGL﹕ validate_display:251 error 3008 (EGL_BAD_DISPLAY)
09-27 12:03:27.477 12407-12452/com.apportable.Spin I/NSLog﹕ renderer: <ES2Renderer:0x748fc080>
09-27 12:03:27.487 12407-12439/com.apportable.Spin W/HardwareRenderer﹕ Attempting to initialize hardware acceleration outside of the main thread, aborting
09-27 12:03:27.527 12407-12452/com.apportable.Spin A/libc﹕ /Users/nathan/iphone-code/apportable/Spin/Tectonic/EAGL/Classes/ES2Renderer.m:412: __31-[ES2Renderer resizeFromLayer:]_block_invoke: assertion "glCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE" failed
On Tuesday, October 1, 2013 at 10:04 AM, nathan ramsey wrote:
I'm guessing that the EGL <-> EAGL binding is closed source? And it doesn't translate sharegroups into shared contexts?
--