Needed for vsync