drawImage 掉帧
在canvas中画图片、添加touchMove监听,手指移动canvas跟着平移,然后循环画图片,在iphone7plus 上掉帧很厉害,给人一种卡顿的感觉,而Android却不会?是什么原因呢?
循环代码如下:
picCtx.translate(objPic.movePoint.x, objPic.movePoint.y)
picCtx.rotate(objPic.rotate);
picCtx.drawImage(objPic.imgPath, objPic.deletePoint.x, objPic.deletePoint.y, objPic.imgSizePoint.width, objPic.imgSizePoint.height)
picCtx.draw()