Skip to content

Commit ed79f7b

Browse files
Document optimize=size_extra SCons option (#10845)
* Document `optimize=size_extra` SCons option * Remove `optimize=size_extra` version note Co-authored-by: A Thousand Ships <[email protected]> --------- Co-authored-by: A Thousand Ships <[email protected]>
1 parent 73688d3 commit ed79f7b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

contributing/development/compiling/introduction_to_the_buildsystem.rst

+2
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ Several compiler optimization levels can be chosen from:
237237
optimizations available.
238238
- ``optimize=size`` *(default when targeting the Web platform)*: Favors small
239239
binaries at the cost of slower execution speed.
240+
- ``optimize=size_extra``: Favors even smaller binaries, at the cost of even
241+
slower execution speed compared to ``optimize=size``.
240242
- ``optimize=debug``: Only enables optimizations that do not impact debugging in
241243
any way. This results in faster binaries than ``optimize=none``, but slower
242244
binaries than ``optimize=speed_trace``.

contributing/development/compiling/optimizing_for_size.rst

+6
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ To enable this, set the ``optimize`` flag to ``size``:
8989

9090
Some platforms such as WebAssembly already use this mode by default.
9191

92+
Godot 4.5 introduced the ``size_extra`` option, which can further reduce size.
93+
94+
::
95+
96+
scons target=template_release optimize=size_extra
97+
9298
Disabling advanced text server
9399
------------------------------
94100

0 commit comments

Comments
 (0)