Initial attempt at dirty rectangle checking (performanceMode)