More efficient painting of DistanceTerrain