Camera rotation flicker in OpenGL ES 2.0
Posted
by
seahorse
on Game Development
See other posts from Game Development
or by seahorse
Published on 2012-07-03T15:58:56Z
Indexed on
2012/07/03
21:23 UTC
Read the original article
Hit count: 464
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)
© Game Development or respective owner