Update-only-when needed algorithm based on buffer subtraction.