Optimization in vacuum photothermal processing (VPP)