ios - Cost of switching between many EAGLContexts? -
I am doing some work, which has some grid views (~ 20 hair scenes on screen at a time). The view of each child draws its contents in GL, and its own drawing thread and EAGL Context
The advantage of this is that each scene is relatively isolated from other GL usage, although on 20 such visual screens, we have to do glFlush + setCurrentContext: 20 times per frame. My stomach tells me that this is not the most effective use of GL.
My question:
- What is the cost of changing references?
- Is glFlush really slow down for each context or does glFlush stall only the current context?
Comments
Post a Comment