Merge "Increase percentage of scanline halves average optimization" into devel/master