performance - Multiple GLES contexts, one framebuffer (iOS) -


i'm doing ios app have black box rendering library has own eaglcontext , framebuffer , it's own rendering. need additional rendering outside black box lib.

up until i've been doing reading, setting , restoring pertinent states each frame. works, fiddly , hard maintain. occurred me, "why not have separate eaglcontext instead?"

i've implemented second context, i'm switching contexts instead of setting/restoring states each frame. problem i'm getting lots of visual artifacts , performance went rock solid 30 fps 5 fps...

so apparently i'm not meant render same framebuffer several contexts. can confirm this?


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -