Do w-clipping earlier to save unneeded calculations.