按《快速上手》创建的三维项目,构建失败,首场景及跟随主包的入口资源体积7.65MB。此体积是否正常?若否,如何清理?若是,如何构建?
按《快速上手》创建的三维项目体积超大,构建失败,如何瘦身?The 3D project created according to "Quick Start" is very large and the construction fails. How to lose weight?
按《快速上手》创建的三维项目体积超大,构建失败,如何瘦身?框架类型 | 问题类型 | 操作系统 | 工具版本 |
---|---|---|---|
小游戏 | Bug | Windows | wechat_devtools_1.05.2112084_x64 |
按《快速上手》创建的三维项目,构建失败,首场景及跟随主包的入口资源体积7.65MB。此体积是否正常?若否,如何清理?若是,如何构建?
Framework type problem type operating system tools version games bug windows wechat_ devtools_ 1.05.2112084_ X64 the 3D project created according to quick start failed to build. The first scene and the entrance resources following the main package have a volume of 7.65mb. Is this volume normal? If not, how? If so, how?
回答:
性能优化一下看看:https://developers.weixin.qq.com/minigame/dev/guide/performance/perf-overview.html
资源全部挂载到cdn只留下代码,一般都不会超过了。除非是持续维护了好久的大型项目,代码才会超过,超过的话,1是考虑代码压缩,2是分包,webgl自己把加载界面的背景图绘制出来,其余代码全部打成分包
https://developers.weixin.qq.com/minigame/dev/guide/assetworkflow/build.html#%E4%B8%8A%E4%BC%A0%E8%B5%84%E6%BA%90%E5%88%B0CDN