c# - 优化我的 godot 游戏大小(单声道版)
问题描述
这里有谁知道我可以如何在 godot 3.3 单声道版本中优化我的游戏的导出大小?
我尝试按照文档中所述从源代码构建 godot mono: https ://docs.godotengine.org/en/latest/development/compiling/compiling_with_mono.html 它工作正常但是当我添加文档中提到的优化命令时(但对于单声道版本): https ://docs.godotengine.org/en/latest/development/compiling/optimizing_for_size.html 我在使用此命令时遇到了问题:
scons platform=x11 target=release_debug tools=yes optimize=speed mono_glue=no mono_prefix=/opt/mono/ module_gridmap_enabled=no module_hdr_enabled=no module_jpg_enabled=no module_jsonrpc_enabled=no module_mobile_vr_enabled=no module_mono_enabled=yes module_ogg_enabled=no module_opensimplex_enabled=no module_opus_enabled=no module_regex_enabled=yes module_stb_vorbis_enabled=no module_tga_enabled=no module_theora_enabled=no module_tinyexr_enabled=no module_upnp_enabled=no module_visual_script_enabled=no module_vorbis_enabled=no module_webm_enabled=no module_webp_enabled=no no_editor_splash=yes -j3
它编译得很好,但是当它完成后,我需要使用以下方法生成胶水:
bin/godot.x11.opt.tools.64.mono --generate-mono-glue modules/mono/glue
我收到此错误:符号查找错误:/lib64/libmonosgen-2.0.so.1:未定义符号:_ZTIPi 但是当我仅使用此命令构建时:
scons platform=x11 target=release_debug tools=yes mono_glue=no mono_prefix=/opt/mono/
一切正常,但如果我没有得到任何尺寸优化,我不需要从源代码构建引擎。
任何机构都可以帮助我吗?
解决方案
推荐阅读
- vegan - 为什么在运行 adonis 函数(permanova)时,df 总是得到 1?
- sharepoint - 如何为 Sharepoint Online 2018 中的文档创建匿名链接
- mysql - 如何在 Laravel 中查询和显示结果
- ionic-framework - Google Flutter 能否在一个应用中针对 iOS 和 Android
- apache-kafka - 如何在单个异步调用中将多条消息推送到一个主题
- php - 如何在 Amazon API Gateway 上检测 GET 请求的 HTTP 用户代理?
- macos - 进程启动时如何从PID获取进程路径?
- java - 如何在android中实现手绘图像裁剪?
- javascript - 如何使用 react-native-video 反向播放视频?
- javascript - 如何使用 JavaScript 检测投掷球的手势?