It’s based on pitches. All pitchers are assigned an amount of pitches based on their IP, and adjusted based on BB/9, K/9, and ERC. Their fatigue is measured from this pitch total, not their IP. Similarly, this factor is also based on their pitches thrown relative to that pitch total. There’s a thread started by elbirdo that breaks down the exact formula to get the Pitch total for every pitcher.