55550da68b
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. |
||
---|---|---|
.. | ||
api | ||
export | ||
js | ||
.eslintrc.engine.js | ||
.eslintrc.js | ||
.eslintrc.libs.js | ||
audio_driver_javascript.cpp | ||
audio_driver_javascript.h | ||
detect.py | ||
dom_keys.inc | ||
emscripten_helpers.py | ||
godot_audio.h | ||
godot_js.h | ||
godot_webgl2.cpp | ||
godot_webgl2.h | ||
http_client.h.inc | ||
http_client_javascript.cpp | ||
javascript_main.cpp | ||
javascript_runtime.cpp | ||
javascript_singleton.cpp | ||
logo.png | ||
os_javascript.cpp | ||
os_javascript.h | ||
package-lock.json | ||
package.json | ||
platform_config.h | ||
README.md | ||
run_icon.png | ||
SCsub | ||
serve.py |
HTML5 platform port
This folder contains the C++ and JavaScript code for the HTML5/WebAssembly platform port, compiled using Emscripten.
It also contains a ESLint linting setup (see package.json
).
See also misc/dist/html
folder for files used by this platform
such as the HTML5 shell.
Artwork license
logo.png
and run_icon.png
are licensed under
Creative Commons Attribution 3.0 Unported
per the HTML5 logo usage guidelines.