The frequency of the PWM absolutely affects the performance of the motor drive.
In general you can say, that the higher the frequency the better the motor control.
When the switching frequency of the PWM is lower the current through the motor is not so smooth, thus, the torque of the motor is n ot smooth as well.