Synchronize CAEAGLLayer with UIKit views

Originator:nskboy
Number:rdar://14147019 Date Originated:13-Jun-2013 01:48 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:7.0
Classification:Improvement Reproducible:Always
 
13-Jun-2013 01:48 PM Roman Busyghin:
Summary:
Currently it is impossible to recreate vector maps on iOS the same way MobileMaps.app does because of lack of synchronization between CAEAGLLayer and UIKit views.

Steps to Reproduce:
1. Run the attached sample in the iOS simulator
2. Pan scroll main app view

Expected Results:
Centers of white and red squares are synchronized

Actual Results:
There is a lag between red square and white square

Regression:
n/a

Notes:
You can fix this problem by using private method  -[CAEAGLLayer setAsynchronous:]. Pass NO and everything will work fine.

Comments

Related discussion: http://stackoverflow.com/questions/12967340/how-to-synchronize-opengl-drawing-with-uikit-updates Sample code: https://www.dropbox.com/s/vznzccibhlf8bon/simple_sample.zip


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!