improved light curve generation runtime

also switched light sweeping order to improve runtime