Some aspects include a system (100), apparatus (100), and method (500) for determining (S51 0) a motion of a patient area due to breathing is substantially periodic according to a treatment plan, moving (S520) a radiotherapy gantry (115) towards a first treatment gantry angle, moving (S520) a radiotherapy beam shaping device (80) towards a first treatment shape corresponding to the first treatment gantry angle, determining (S525) when a next treatment window is to begin based on a predictive model derived from the motion of the patient area, where the treatment window is a period of time designated for delivery of treatment radiation to the patient area according to the treatment plan, adjusting (S530) the moving of the radiotherapy gantry (115) such that the radiotherapy gantry (115) will reach the first treatment angle during the determined next treatment window, and delivering (S540) a treatment radiation beam to the patient area during the determined next treatment window.