optimize expansion speed with clipping of invisible tree parts