提交 bd7c3178 编写于 作者: H hdx

canvas: 移除一些判定逻辑

上级 38eb4291
...@@ -161,9 +161,6 @@ ...@@ -161,9 +161,6 @@
context.stroke(path2D); context.stroke(path2D);
}, },
startAnimationFrame() { startAnimationFrame() {
if (this.taskId > 0) {
this.stopAnimationFrame()
}
this.taskId = this.canvasContext!.requestAnimationFrame((timestamp : number) => { this.taskId = this.canvasContext!.requestAnimationFrame((timestamp : number) => {
this.testFrameCount++ this.testFrameCount++
this.updateFPS(timestamp) this.updateFPS(timestamp)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册