cc.DrawNode 2.0不能用cc.Graphics绘图画多了会卡怎么办 在线等。。。

DrawWithLocation(touchLoc:cc.Vec2){
var Point = this.originPoint;
let e1 = new cc.DrawNode();
// e1.glEnable( cc.GL_LINE_SMOOTH);
e1.drawSegment(Point, touchLoc, NailTechnician_GameManage.getInstance().brushWidth, NailTechnician_GameManage.getInstance().nailColor);
this.rt.begin();
e1.visit();
this.rt.end();
this.originPoint = touchLoc;
}

cc.DrawNode有什么替代的吗?

1赞

同问,小游戏存在graphcs线条花多了出现卡顿问题

请问你们解决了吗

绘制卡,边绘制边着色,消耗性能,手机发热等问题。目前没有好的测试方案,我们通过降低帧率来操作的

有个思路可以试试 就是把绘制的数据 用填充到texture中 用sprite显示出来

论坛搜可擦写绘画板就行了