Yet another PID question

Pomachu:
Why would the loop function not be constant?

The interrupt service routine that handles timer 0 overflow runs.

Your code takes a different path then the last time loop ran.

Etcetera.