I need to set the interval in eglSwapInterval to 0 for my application, however I need to k开发者_StackOverflow中文版now the EGLDisplay for this. Is this call supported in Android, and if so how can I call this using GLSurfaceView (or do I need to call this from the native code?)
Okay, I have managed to call it from the native side, (I cannot find a way to call it from Java):
eglSwapInterval(eglGetCurrentDisplay(), 0);
I am assuming that I don't need to call eglSwapBuffers myself, as this seems to be happening already somewhere by the Android system.
精彩评论