What determines when flight plan waypoints advance?

We find that the aircraft will sometimes skip waypoints because it seems to have a large distance at which it determines it should advance to the next waypoint.

What determines how close to the waypoint the aircraft may be until the leg is advanced?

This is for a helicopter of course.