add some 2d drawing optimazation
fix XYZ material and monster position reversed issue