A pump and pump controller which uses an algorithm to quickly achieve and maintain a set pressure in a surgical site when high resistance hardware is being used is provided. The algorithm uses a gravity control type loop and uses pressure loss calculations to quickly respond to changing joint conditions. A method of using such a pump and pump controller is also provided.