How close can I get to Android devices' graphics hardware safely, starting with Froyo and later?
I want to implement a simple page-flipping scheme on Android devices, using two frame buffers.
It should go like this:
Render into Frame Buffer A. (Frame Buffer A is the Back Buffer and Frame Buffer B is currently displayed.)
Wait for the next VSYNC (maybe an VSYNC interrupt?)
Tell the OS to display Frame Buffer A and make Frame Buffer B the Back Buffer.
Render into Frame Buffer B. (Frame Buffer B is the Back Buffer and Frame Buffer A is currently displayed.)
Wait for the next VSYNC (maybe an VSYNC interrupt?)
Tell the OS to display Frame Buffer B and make Frame Buffer A the Back Buffer.
Repeat steps 1 - 6.
Updating the display about 15 - 25 times a second is optimal for my needs. (I'll never need 60 fps or anything higher than 30 fps.)
I'm planning to use only OpenGL ES 2.0 for all rendering.