The oversampling amount should be configurable, and it would work better if the slew signal was oversampled independently instead of doing this compensation thing.