Set the swap interval for vsync