Making calculations happen at the same time as drawing.