mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
Update SCons link-time optimization option for 3.5 and later
This commit is contained in:
@@ -29,13 +29,8 @@ To get useful profiling information, it is **absolutely required** to use a Godo
|
||||
build that includes debugging symbols. Official binaries do not include debugging
|
||||
symbols, since these would make the download size significantly larger.
|
||||
|
||||
To get profiling data that best matches the production environment, you should
|
||||
compile binaries with the following SCons options:
|
||||
|
||||
- For editor binaries: ``target=release_debug use_lto=yes``
|
||||
- For debug export templates: ``target=release_debug use_lto=yes``
|
||||
- For release export templates: ``tools=no target=release debug_symbols=yes``
|
||||
- ``debug_symbols=yes`` is required as export templates are stripped from debugging symbols by default.
|
||||
To get profiling data that best matches the production environment (but with debugging symbols),
|
||||
you should compile binaries with the ``production=yes debug_symbols=yes`` SCons options.
|
||||
|
||||
It is possible to run a profiler on less optimized builds (e.g. ``target=debug`` without LTO),
|
||||
but results will naturally be less representative of real world conditions.
|
||||
|
||||
Reference in New Issue
Block a user