A controller for use in a power factor correction converter, comprising: an integrator coupled to receive a voltage sense signal responsive to a magnitude of an AC voltage source coupled to an input of the power factor correction converter coupled to an energy transfer element coupled to a power switch , wherein the voltage sense signal is not representative of the instantaneous input voltage at any instant in time, but rather is a value that typically remains substantially constant over many half cycle periods, the integrator further coupled to receive a current sense signal responsive to a current flowing in the power switch when the power switch is on, the integrator to generate an integrator output signal in response to the voltage sense signal and the current sense signal ; and an error amplifier coupled to receive a reference voltage and a feedback signal responsive to the magnitude of a DC output voltage of the power factor correction converter, a comparator to receive the output value from the error amplifier and the integrator output signal, on/off logic coupled to drive the power switch on and off to control a transfer of energy through the energy transfer element to a load coupled to an output of the power factor correction converter, the on/off logic coupled to the output of the comparator to terminate an on time of the power switch when the integrator output signal reaches a threshold value said threshold being the output value of the error amplifier, wherein a gain of the integrator circuit is adjusted in response to the voltage sense signal such that the threshold value is substantially constant independent of the magnitude of the AC voltage source when a magnitude of the load is constant. an integrator coupled to receive a voltage sense signal responsive to a magnitude of an AC voltage source coupled to an input of the power factor correction converter coupled to an energy transfer element coupled to a power switch , wherein the voltage sense signal is not representative of the instantaneous input voltage at any instant in time, but rather is a value that typically remains substantially constant over many half cycle periods, the integrator further coupled to receive a current sense signal responsive to a current flowing in the power switch when the power switch is on, the integrator to generate an integrator output signal in response to the voltage sense signal and the current sense signal ; and an error amplifier coupled to receive a reference voltage and a feedback signal responsive to the magnitude of a DC output voltage of the power factor correction converter, a comparator to receive the output value from the error amplifier and the integrator output signal, on/off logic coupled to drive the power switch on and off to control a transfer of energy through the energy transfer element to a load coupled to an output of the power factor correction converter, the on/off logic coupled to the output of the comparator to terminate an on time of the power switch when the integrator output signal reaches a threshold value said threshold being the output value of the error amplifier, wherein a gain of the integrator circuit is adjusted in response to the voltage sense signal such that the threshold value is substantially constant independent of the magnitude of the AC voltage source when a magnitude of the load is constant. <EOS>