首页 > 解决方案 > 优化我的 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/

一切正常,但如果我没有得到任何尺寸优化,我不需要从源代码构建引擎。

任何机构都可以帮助我吗?

标签: c#linuxsconsgodot

解决方案


推荐阅读