mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-18 09:56:50 +01:00
Relintai
5ae44c4746
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.
- akien-mga
|
||
---|---|---|
.. | ||
api | ||
export | ||
plugin | ||
app_delegate.h | ||
app_delegate.mm | ||
detect.py | ||
device_metrics.h | ||
device_metrics.m | ||
display_layer.h | ||
display_layer.mm | ||
ios.h | ||
ios.mm | ||
joypad_iphone.h | ||
joypad_iphone.mm | ||
keyboard_input_view.h | ||
keyboard_input_view.mm | ||
logo.png | ||
main.m | ||
native_video_view.h | ||
native_video_view.m | ||
os_iphone.h | ||
os_iphone.mm | ||
pandemonium_app_delegate.h | ||
pandemonium_app_delegate.m | ||
pandemonium_iphone.mm | ||
pandemonium_view_renderer.h | ||
pandemonium_view_renderer.mm | ||
pandemonium_view.h | ||
pandemonium_view.mm | ||
platform_config.h | ||
power_iphone.cpp | ||
power_iphone.h | ||
SCsub | ||
view_controller.h | ||
view_controller.mm |