How to synchronize OpenGL drawing with UIKit updates
问题 In our app we have UIScrollView above CAEAGLLayer. UIScrollView contains some UIViews (red rectangles). In CAEAGLLayer we draw white rectangles. Centers of white rectangles are the same as the centers of red rectangles. When UIScrollView scrolls, we update positions of white rectangles in CAEAGLLayer and render them. We are getting the expected result: centers of white rectangles are always the same as centers of red rectangles. But we can't synchronize updates of the CAEAGLLayer with the