Draw layers in the right order
Compute ordinates only once (1/2)
Compute ordinates only once (2/2)