Various methods and devices that involve control circuits for power converters are disclosed. One method comprises controlling a switch using a control signal based on a comparison signal. The switch controls a transfer of power between an input node, which receives an input, and an output node. The method comprises measuring an output of the power converter, generating an error signal based on the output, generating a periodic ramp signal with a varying period, providing the error signal to a first input terminal of a comparator, providing the ramp signal to a second input terminal of the comparator, and generating the comparison signal based on the error signal and the ramp signal using the comparator. The method comprises increasing a slope of the ramp signal in response to an increase in the input, and increasing the slope of the ramp signal in response to a decrease in the varying period.