Time-dependent energy absorption changes during ultrafast lattice deformation