[LayaAir 2.0]drawToCanvas无法释放内存

Laya.stage.frameLoop(1, this, ZX);function ZX():void{
var tex:Texture=new Texture(sp.drawToCanvas(sp.width,sp.height,0,0))
            sp.graphics.clear()
            sp.graphics.destroy()
            tex.destroy()
            tex.disposeBitmap()
            tex.bitmap.releaseResource();
}
每次调用都不会刷新,怎么清理都没用内存一下子上百了。怎么回事?应该怎么清理十释放内存!
已邀请:

Aar0n

赞同来自:

用drawtotexture把,这个接口打算弃用了,性能也不好

要回复问题请先

商务合作
商务合作