Optimised update loop to reduce calculations if the transform doesn't change.