I'm currently using CADisplayLink
to show an OpenGL animation which works great. Sometimes, however a parameter changes and I need to redraw the view immediately and can't wait until the next frame is requested by CADisplayLink
. If I don't do that, I get one frame wrong which looks really bad in my case.
So, how can I force a redraw of an EAGLView
without interfering with the CADisplayLink
stuff?
If your CADisplayLink is calling method drawFrame, for example, then just call drawFrame yourself when you need to. No reason you need to wait for CADisplayLink if you don't want to.