glfw actually has a function for vsync, so lets use it instead of our own bicycle