[eglfs] Set swapInterval at the right time