3907e53ff6
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. |
||
---|---|---|
.. | ||
test_animation.h | ||
test_arraymesh.h | ||
test_audio_stream_wav.h | ||
test_bit_map.h | ||
test_code_edit.h | ||
test_color_picker.h | ||
test_curve_2d.h | ||
test_curve_3d.h | ||
test_curve.h | ||
test_gradient.h | ||
test_navigation_agent_2d.h | ||
test_navigation_agent_3d.h | ||
test_navigation_obstacle_2d.h | ||
test_navigation_obstacle_3d.h | ||
test_navigation_region_2d.h | ||
test_navigation_region_3d.h | ||
test_node.h | ||
test_packed_scene.h | ||
test_path_2d.h | ||
test_path_3d.h | ||
test_path_follow_2d.h | ||
test_path_follow_3d.h | ||
test_primitives.h | ||
test_sprite_frames.h | ||
test_text_edit.h | ||
test_theme.h | ||
test_viewport.h | ||
test_visual_shader.h | ||
test_window.h |