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

Popular posts from this blog

Android - Facebook GraphUser has no email attribute -

Opencart and VQMOD issue: Could not load controller in vq2-system_engine_controller.php -

deployment - How to upload Parent child SSIS package to server -