godot/modules/denoise
Rémi Verschelde 3907e53ff6
SCons: Disable C++ exception handling
Upon investigating the extremely slow MSVC build times in #80513, I noticed
that while Godot policy is to never use exceptions, we weren't enforcing it
with compiler flags, and thus still included exception handling code and
stack unwinding.

This is wasteful on multiple aspects:

- Binary size: Around 20% binary size reduction with exceptions disabled
  for both MSVC and GCC binaries.
- Compile time:
  * More than 50% build time reduction with MSVC.
  * 10% to 25% build time reduction with GCC + LTO.
- Performance: Possibly, needs to be benchmarked.

Since users may want to re-enable exceptions in their own thirdparty code
or the libraries they compile with Godot, this behavior can be toggled with
the `disable_exceptions` SCons option, which defaults to true.
2023-08-16 10:23:34 +02:00
..
config.py SCons: Unify tools/target build type configuration 2022-09-26 16:31:46 +02:00
denoise_wrapper.cpp Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
denoise_wrapper.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
lightmap_denoiser.cpp Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
lightmap_denoiser.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
register_types.cpp Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
register_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
resource_to_cpp.py CI: Update static checks to black 23.3.0 2023-06-19 23:33:02 +02:00
SCsub SCons: Disable C++ exception handling 2023-08-16 10:23:34 +02:00