Commit 6aea095a authored by limingzhe's avatar limingzhe

fix: debug

parent 66b1da51
...@@ -738,9 +738,19 @@ export default class middleLayer extends cc.Component { ...@@ -738,9 +738,19 @@ export default class middleLayer extends cc.Component {
this.getDragonDisplayAssetList(cc.find('Canvas')); this.getDragonDisplayAssetList(cc.find('Canvas'));
// 释放动态字体缓存
cc.dynamicAtlasManager.reset();
cc.dynamicAtlasManager.enabled = false; // 彻底关掉动态合图(如果没特别需要)
// // 释放 Label 的字体缓存
// cc.Label._canvasPool = {};
// cc.Label._fontAtlasCache = {};
this.clearPrefabs(cc.find('Canvas')); this.clearPrefabs(cc.find('Canvas'));
this.clearGraphics(cc.find('Canvas')); this.clearGraphics(cc.find('Canvas'));
this.clearLabels(cc.find('Canvas')); this.clearLabels(cc.find('Canvas'));
const scene = cc.director.getScene(); const scene = cc.director.getScene();
if (scene) { if (scene) {
......
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