进入游戏的时候,速度过慢
console.log(4,new Date().toString())
this._view = fgui.UIPackage.createObject("Baccarat", "BaccaratGame").asCom; // -- 这里需要2s
console.log(5,new Date().toString())
this._view.makeFullScreen();
console.log(6,new Date().toString())
fgui.GRoot.inst.addChild(this._view); // --这里需要3s
console.log(7,new Date().toString())
有什么好的办法优化加载速度
this._view = fgui.UIPackage.createObject("Baccarat", "BaccaratGame").asCom; // -- 这里需要2s
console.log(5,new Date().toString())
this._view.makeFullScreen();
console.log(6,new Date().toString())
fgui.GRoot.inst.addChild(this._view); // --这里需要3s
console.log(7,new Date().toString())
有什么好的办法优化加载速度
没有找到相关结果
已邀请:
1 个回复
谷主
赞同来自: