render2d code optimize