角色,放几个技能后内存从 60 M 长到 90M,清理后,内存没下降。
清理方法
override public function destroy(destroyChild:Boolean = true):void {
if(effect3D != null){
effect3D.destroy();
effect3D = null;
}
super.destroy(true);
Laya.loader.clearRes(this._path);
}
画红框的区域还在内存里。。
https://ask.layabox.com/question/14807
。。