Apparatus and associated methods relate to providing a piecewise loadline having a number of segments with different slopes and selecting a segment of the piecewise loadline based on an output current of a power supply. In an illustrative example, the piecewise loadline may include a segment that has a negative slope. When the output current is less than a predetermined threshold, the segment with the negative slope may be selected to improve power efficiency. In some embodiments, the piecewise loadline may have several segments with different positive slopes. Different segments may be selected to make the load work in different modes. For example, by selecting an overcurrent loadline, the load (e.g., a processor) may be informed to throttle back its performance. Having a piecewise loadline may allow independent optimization of the loadline resistances, voltage thresholds, and current limits.