1. A method to optimize a treatment delivery that includes tracking of a target, comprising: simulating, using a processor, a treatment time image from treatment planning images and data to obtain a simulated treatment time image, wherein the processor comprises an input configured to receive the treatment planning images and the data, and is configured to simulate the treatment time image based at least in part on the treatment planning images and the data; generating, using the processor, a template from the planning images and data; template matching, using the processor, between the template and the simulated treatment time image to determine a value of a trackability measure as part of treatment planning, the trackability measure indicating a trackability of the target and being a function of imaging angle; and determining, using the processor, a treatment plan based on the value of the trackability measure; wherein the treatment plan determined based on the value of the trackability measure, is executable by a treatment machine to cause the treatment machine to deliver less or no dose from a treatment delivery angle for which one of a plurality of values of the trackability measure is lower compared to another one of the plurality of values of the trackability measure for another treatment delivery angle.