A power converter controller configured to be coupled to a power switch to control switching of the power switch to regulate an output of a power converter, wherein the power converter comprises the power switch and is configured to be controlled by the power converter controller , the controller including: a drive circuit coupled to receive a) an enable signal that is representative of the output of the power converter and informs the controller to enable or disable the power switch, wherein the enable signal includes enable events that include a transition from one logic state to another logic state; and b) a current sense signal representative of a power switch current to generate a drive signal to control switching of the power switch; a current limit threshold generator coupled to provide a variable current limit threshold for the drive circuit ; wherein the current limit threshold generator is configured to vary the variable current limit threshold in response to a time between successive of the enable events of the enable signal; wherein the current limit threshold generator is configured to increase the variable current limit threshold within a current limit threshold range in response to an end of each ON time of the power switch i) with a fixed increase amount, or ii) up to a maximum current limit threshold, or iii) for a fixed time period, and then to decrease the variable current limit threshold within the current limit threshold range at a decrease rate until i) the power switch current reaches the variable current limit threshold or ii) the variable current limit threshold reaches a minimum current limit threshold; and wherein the drive circuit is configured to turn on the power switch for said ON time in response to the enable events transitioning to one of the logic states and to turn off the power switch in response to the power switch current reaching the variable current limit threshold. a drive circuit coupled to receive a) an enable signal that is representative of the output of the power converter and informs the controller to enable or disable the power switch, wherein the enable signal includes enable events that include a transition from one logic state to another logic state; and b) a current sense signal representative of a power switch current to generate a drive signal to control switching of the power switch; a) an enable signal that is representative of the output of the power converter and informs the controller to enable or disable the power switch, wherein the enable signal includes enable events that include a transition from one logic state to another logic state; and b) a current sense signal representative of a power switch current to generate a drive signal to control switching of the power switch; a current limit threshold generator coupled to provide a variable current limit threshold for the drive circuit ; wherein the current limit threshold generator is configured to vary the variable current limit threshold in response to a time between successive of the enable events of the enable signal; wherein the current limit threshold generator is configured to increase the variable current limit threshold within a current limit threshold range in response to an end of each ON time of the power switch i) with a fixed increase amount, or ii) up to a maximum current limit threshold, or iii) for a fixed time period, and then to decrease the variable current limit threshold within the current limit threshold range at a decrease rate until i) the power switch current reaches the variable current limit threshold or ii) the variable current limit threshold reaches a minimum current limit threshold; and wherein the drive circuit is configured to turn on the power switch for said ON time in response to the enable events transitioning to one of the logic states and to turn off the power switch in response to the power switch current reaching the variable current limit threshold. <EOS>