Move delta calculation up so that only the loop time counts.