Should eglSwapBuffers(...) be blocking until minimal number of video frames is reached?

StackOverflow https://stackoverflow.com/questions/22536102

  •  18-06-2023
  •  | 
  •  

Question

I am implementing EGL 1.4 in user space for iOS. The specification for eglSwapBuffers(...) states post the color buffer to a window.

The specification for eglSetSwapInterval(EGLDisplay dpy, EGLint interval) states The parameter *interval* specifies the minimum number of video frames that are displayed before a buffer swap will occur.

My questions are:

a) Should eglSwapBuffers(...) blocks until the minimal number of frames is reached ?

b) if answer to a) is NO, should eglSwapBuffers(...) return without posting the color buffer to the window and return EGL_TRUE.

c) if answer to b) is NO, then what should it be ?

Regards,

Was it helpful?

Solution

The answer seems to be eglSwapBuffers(...) blocks until the minimal number of frames is reached.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top