Camera rotation flicker in OpenGL ES 2.0
- by seahorse
I implemented an orbit camera in my own OpenGL ES 2.0 application.
I was getting extensive amount of flicker while rotating the camera using the mouse.
When I added the line eglSwapInterval( ..., 0.1); after eglSwapBuffers()
and then the flicker immediately stopped.
I am not able to understand why eglSwapInterval solves the flicker problem?
(The FPS of my app prior to eglSwapInterval was around 700FPS)
(The flicker is NOT due to z-fighting because I have set near and far clip planes as 100 and 500)