terrain drawing optimisation