Commit 7ed521f7 authored by limingzhe's avatar limingzhe

fix: debug

parent eaa8a0e6
......@@ -475,19 +475,6 @@ export abstract class middleLayerBase extends cc.Component {
await asyncDelay(0.001);
[ ...this.atlasList, ...this.assetList ].forEach(asset => {
console.log('asset_uuid: ', asset._uuid);
console.log('asset: ', asset);
// asset.decRef();
while (asset?.refCount > 0) {
asset.decRef();
}
cc.assetManager.releaseAsset(asset);
asset.destroy();
});
......@@ -495,18 +482,33 @@ export abstract class middleLayerBase extends cc.Component {
// console.log('texture_uuid: ', texture._uuid);
// console.log('texture: ', texture);
while (texture?.refCount > 0) {
texture.decRef();
}
// while (texture?.refCount > 0) {
// texture.decRef();
// }
cc.assetManager.releaseAsset(texture);
texture.destroy();
});
[ ...this.atlasList, ...this.assetList ].forEach(asset => {
console.log('asset_uuid: ', asset._uuid);
console.log('asset: ', asset);
await asyncDelay(0.001);
// asset.decRef();
// while (asset?.refCount > 0) {
// asset.decRef();
// }
cc.assetManager.releaseAsset(asset);
asset.destroy();
});
// await asyncDelay(0.001);
cc.assetManager.releaseUnusedAssets();
// cc.assetManager.releaseUnusedAssets();
}
......
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