Revert "【内存优化】添加一些debug打印"

This reverts commit 31ad3358bc.
dev_chengFeng
gaoxin 2021-04-22 18:27:29 +08:00
parent 868643f87c
commit 59577999a5
5 changed files with 0 additions and 6 deletions

View File

@ -73,7 +73,6 @@ function this.Close(sub)
sub.lspLoader = nil
end
resMgr:UnLoadAsset(sub.assetName)
LogError("sub UI close: "..sub.assetName)
end

View File

@ -737,7 +737,6 @@ function UIManager.DelayDestroyPanel(panel)
end
function UIManager.DestroyPanel(panel)
LogError("Panel Destroy: "..panel.uiConfig.assetName)
panel:DestroyUI()
GameObject.Destroy(panel.gameObject)
resMgr:UnLoadAsset(panel.uiConfig.assetName)

View File

@ -42,7 +42,6 @@ function SpriteLoader:UnLoadSprite()
LogError("SpriteLoader Repeat UnLoad : ".. self.id..", count : "..SpriteLoaderPool[self.id])
end
for name, count in pairs(self.SpriteList) do
LogWarn("lua 回收资源name:"..name..", count:"..count)
resMgr:UnLoadAsset(name, count)
end
self.SpriteList = {}

View File

@ -154,7 +154,6 @@ function this:InitComponent()
this.mopUpGo:SetActive(false)
--元素共鸣
LogError("FormationPanelV2 Init")
this.ElementalResonanceView = SubUIManager.Open(SubUIConfig.ElementalResonanceView, this.gameObject.transform)
end
@ -267,7 +266,6 @@ function this:OnClose()
end
function this:OnDestroy()
LogError("FormationPanelV2 OnDestroy")
this.spLoader:Destroy()
SubUIManager.Close(this.UpView)
SubUIManager.Close(this.ElementalResonanceView)

View File

@ -579,7 +579,6 @@ function this.Init()
if not sr then
sr = go.gameObject:AddComponent(typeof(UnityEngine.SpriteRenderer))
end
LogWarn("Lua Load map BG:".._mapConfig[_mapId].BGPath.."_"..count)
sr.sprite = this.spLoader:LoadSprite(_mapConfig[_mapId].BGPath.."_"..count)
end
end