I know that there are many ways to control the fps when implementing an OpenGL ES application.
(ex. eglSwapInterval, sleep, polling, etc..)
I'd like to know what is the common way, among other things.
what is the most optimized way to render at 30fps on an LCD with a refresh rate of 60Hz?
Also, what is the way to control FPS using eglClientwaySync API?
For Android, this is a good resource:* https://developer.android.com/games/sdk/frame-pacing
Also for Android eglSwapInterval doesn't work - it gets ignored, so you normally need some level of application sleep (ideally using the methods in the document above to ensure even pacing).
Thank you for your reply.
I have another question.
what is the way to control FPS using eglClientwaySync API?
I've never seen eglClientWaitSync() used to control FPS on Android - I don't know how you would get the Sync object. I'll ask the team here to see if anyone has any ideas.