mirror of https://github.com/godotengine/godot
Disable shader baker when exporting as dedicated server
Dedicated server exports don't perform any rendering, so there's no point in including baked shaders. Doing so saves a few MBs in PCK size if the shader baker was enabled in the export options.
This commit is contained in:
parent
06faefc9f4
commit
09f9dc157a
|
|
@ -52,7 +52,8 @@ void EditorExportPlatformAppleEmbedded::get_preset_features(const Ref<EditorExpo
|
|||
r_features->push_back("etc2");
|
||||
r_features->push_back("astc");
|
||||
|
||||
if (p_preset->get("shader_baker/enabled")) {
|
||||
if (!p_preset->is_dedicated_server() && p_preset->get("shader_baker/enabled")) {
|
||||
// Don't use the shader baker if exporting as a dedicated server, as no rendering is performed.
|
||||
r_features->push_back("shader_baker");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,8 @@ void EditorExportPlatformPC::get_preset_features(const Ref<EditorExportPreset> &
|
|||
r_features->push_back("etc2");
|
||||
r_features->push_back("astc");
|
||||
}
|
||||
if (p_preset->get("shader_baker/enabled")) {
|
||||
if (!p_preset->is_dedicated_server() && p_preset->get("shader_baker/enabled")) {
|
||||
// Don't use the shader baker if exporting as a dedicated server, as no rendering is performed.
|
||||
r_features->push_back("shader_baker");
|
||||
}
|
||||
// PC platforms only have one architecture per export, since
|
||||
|
|
|
|||
|
|
@ -627,6 +627,7 @@
|
|||
</member>
|
||||
<member name="shader_baker/enabled" type="bool" setter="" getter="">
|
||||
If [code]true[/code], shaders will be compiled and embedded in the application. This option is only supported when using the Forward+ or Mobile renderers.
|
||||
[b]Note:[/b] When exporting as a dedicated server, the shader baker is always disabled since no rendering is performed.
|
||||
</member>
|
||||
<member name="user_data_backup/allow" type="bool" setter="" getter="">
|
||||
If [code]true[/code], allows the application to participate in the backup and restore infrastructure.
|
||||
|
|
|
|||
|
|
@ -1977,7 +1977,8 @@ void EditorExportPlatformAndroid::get_preset_features(const Ref<EditorExportPres
|
|||
r_features->push_back("etc2");
|
||||
r_features->push_back("astc");
|
||||
|
||||
if (p_preset->get("shader_baker/enabled")) {
|
||||
if (!p_preset->is_dedicated_server() && p_preset->get("shader_baker/enabled")) {
|
||||
// Don't use the shader baker if exporting as a dedicated server, as no rendering is performed.
|
||||
r_features->push_back("shader_baker");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -730,6 +730,7 @@
|
|||
</member>
|
||||
<member name="shader_baker/enabled" type="bool" setter="" getter="">
|
||||
If [code]true[/code], shaders will be compiled and embedded in the application. This option is only supported when using the Forward+ or Mobile renderers.
|
||||
[b]Note:[/b] When exporting as a dedicated server, the shader baker is always disabled since no rendering is performed.
|
||||
</member>
|
||||
<member name="storyboard/custom_bg_color" type="Color" setter="" getter="">
|
||||
A custom background color of the storyboard launch screen.
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
</member>
|
||||
<member name="shader_baker/enabled" type="bool" setter="" getter="">
|
||||
If [code]true[/code], shaders will be compiled and embedded in the application. This option is only supported when using the Forward+ or Mobile renderers.
|
||||
[b]Note:[/b] When exporting as a dedicated server, the shader baker is always disabled since no rendering is performed.
|
||||
</member>
|
||||
<member name="ssh_remote_deploy/cleanup_script" type="String" setter="" getter="">
|
||||
Script code to execute on the remote host when app is finished.
|
||||
|
|
|
|||
|
|
@ -704,6 +704,7 @@
|
|||
</member>
|
||||
<member name="shader_baker/enabled" type="bool" setter="" getter="">
|
||||
If [code]true[/code], shaders will be compiled and embedded in the application. This option is only supported when using the Forward+ or Mobile renderers.
|
||||
[b]Note:[/b] When exporting as a dedicated server, the shader baker is always disabled since no rendering is performed.
|
||||
</member>
|
||||
<member name="ssh_remote_deploy/cleanup_script" type="String" setter="" getter="">
|
||||
Script code to execute on the remote host when app is finished.
|
||||
|
|
|
|||
|
|
@ -63,7 +63,8 @@ void EditorExportPlatformMacOS::get_preset_features(const Ref<EditorExportPreset
|
|||
ERR_PRINT("Invalid architecture");
|
||||
}
|
||||
|
||||
if (p_preset->get("shader_baker/enabled")) {
|
||||
if (!p_preset->is_dedicated_server() && p_preset->get("shader_baker/enabled")) {
|
||||
// Don't use the shader baker if exporting as a dedicated server, as no rendering is performed.
|
||||
r_features->push_back("shader_baker");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -582,6 +582,7 @@
|
|||
</member>
|
||||
<member name="shader_baker/enabled" type="bool" setter="" getter="">
|
||||
If [code]true[/code], shaders will be compiled and embedded in the application. This option is only supported when using the Forward+ and Mobile renderers.
|
||||
[b]Note:[/b] When exporting as a dedicated server, the shader baker is always disabled since no rendering is performed.
|
||||
</member>
|
||||
<member name="user_data/accessible_from_files_app" type="bool" setter="" getter="">
|
||||
If [code]true[/code], the app "Documents" folder can be accessed via "Files" app. See [url=https://developer.apple.com/documentation/bundleresources/information_property_list/lssupportsopeningdocumentsinplace]LSSupportsOpeningDocumentsInPlace[/url].
|
||||
|
|
|
|||
|
|
@ -100,6 +100,7 @@
|
|||
</member>
|
||||
<member name="shader_baker/enabled" type="bool" setter="" getter="">
|
||||
If [code]true[/code], shaders will be compiled and embedded in the application. This option is only supported when using the Forward+ and Mobile renderers.
|
||||
[b]Note:[/b] When exporting as a dedicated server, the shader baker is always disabled since no rendering is performed.
|
||||
</member>
|
||||
<member name="ssh_remote_deploy/cleanup_script" type="String" setter="" getter="">
|
||||
Script code to execute on the remote host when app is finished.
|
||||
|
|
|
|||
Loading…
Reference in New Issue