virtualx-engine/platform/javascript
Rémi Verschelde 55550da68b
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:34:10 +02:00
..
api One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
export One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
js One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
.eslintrc.engine.js [HTML5] Document Engine and EngineConfig (jsdoc). 2021-02-26 15:35:38 +01:00
.eslintrc.js HTML5: Fix minification error with Emscripten 1.39.9 2021-09-29 10:54:01 +02:00
.eslintrc.libs.js [HTML5] Refactor JS library listeners to OS. 2021-10-05 15:13:41 +02:00
audio_driver_javascript.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
audio_driver_javascript.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
detect.py SCons: Disable C++ exception handling 2023-08-16 10:34:10 +02:00
dom_keys.inc One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
emscripten_helpers.py [HTML5] Add GDNative+Threads build. 2022-06-13 11:46:08 +02:00
godot_audio.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
godot_js.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
godot_webgl2.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
godot_webgl2.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
http_client.h.inc One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
http_client_javascript.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
javascript_main.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
javascript_runtime.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
javascript_singleton.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
logo.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2019-10-12 23:23:33 +02:00
os_javascript.cpp Add audio/general/text_to_speech project setting to enable/disable TTS. 2023-05-26 20:57:29 +03:00
os_javascript.h Add audio/general/text_to_speech project setting to enable/disable TTS. 2023-05-26 20:57:29 +03:00
package-lock.json [JS] Update npm packages 2023-08-01 11:51:41 +02:00
package.json [JS] Update npm packages 2023-08-01 11:51:41 +02:00
platform_config.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
README.md Add logo attribution for Android, HTML5 and Linux platform icons 2021-09-21 17:14:59 +02:00
run_icon.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2018-06-28 19:17:41 +02:00
SCsub [Web] Add the "serve" and "run" scons targets. 2022-12-12 14:49:22 +01:00
serve.py [Web] Add the "serve" and "run" scons targets. 2022-12-12 14:49:22 +01:00

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.