cocos2d-x 体积优化
发布时间:2020-12-14 21:32:32 所属栏目:百科 来源:网络整理
导读:1. so文件优化 1)在luamoduleregister.h中注释掉不需要的代码,重新打包后即可看到效果 int lua_module_register(lua_State* L){ register_cocosdenshion_module(L); // comment this line to remove cocosdenshion register_network_module(L); // comment
1. so文件优化 1)在luamoduleregister.h中注释掉不需要的代码,重新打包后即可看到效果 int lua_module_register(lua_State* L){ register_cocosdenshion_module(L); // comment this line to remove cocosdenshion register_network_module(L); // comment this line to remove network register_cocosbuilder_module(L); // comment this line to remove cocosbuilder register_cocostudio_module(L);// comment this line to remove cocostudio register_extension_module(L); // comment this line to remove extension register_ui_moudle(L);// comment this line to remove ui register_spine_module(L); // comment this line to remove spine register_cocos3d_module(L); // comment this line to remove 3d return 1;} (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |