Commit 35d15bac authored by liujiangnan's avatar liujiangnan

debug

parent ea13d8c1
......@@ -518,12 +518,11 @@ export default class NewClass extends middleLayerBase {
}
});
cc.director.loadScene("middleLayer_for_debug", (err, scene) => {
this.showUI();
// 手机端强制垃圾回收
if (cc.sys.isNative && cc.sys.os == cc.sys.OS_IOS || cc.sys.os == cc.sys.OS_ANDROID) {
cc.sys.garbageCollect();
setTimeout(() => {
setTimeout(() => {
console.log(cc.assetManager.assets);
cc.director.loadScene("middleLayer_for_debug", (err, scene) => {
// 手机端强制垃圾回收
if (cc.sys.isNative && cc.sys.os == cc.sys.OS_IOS || cc.sys.os == cc.sys.OS_ANDROID) {
cc.sys.garbageCollect();
setTimeout(() => {
cc.sys.garbageCollect();
......@@ -531,15 +530,18 @@ export default class NewClass extends middleLayerBase {
cc.sys.garbageCollect();
setTimeout(() => {
cc.sys.garbageCollect();
setTimeout(() => {
cc.sys.garbageCollect();
this.showUI();
}, 2000);
}, 2000);
}, 2000);
}, 2000);
}, 2000);
}
// const bd = cc.assetManager.getBundle(this.oldSceneName);
// bd.releaseAll();
});
}
// const bd = cc.assetManager.getBundle(this.oldSceneName);
// bd.releaseAll();
});
}, 4000);
})
.start();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment