Moved all OpenGL functionality to a new RenderingEngine class. Added CADisplayLink synchronization to the GLView.