optimize scissor clipping