[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();
}
每次调用都不会刷新,怎么清理都没用内存一下子上百了。怎么回事?应该怎么清理十释放内存!
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();
}
每次调用都不会刷新,怎么清理都没用内存一下子上百了。怎么回事?应该怎么清理十释放内存!
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Aar0n
赞同来自: