You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document exporting as progressive web app in Exporting for the web
- Document no-threads web export and its limitations.
- Document sample-based audio playback and its limitations.
- Mention that threading issues can be worked around by exporting
as a progressive web app.
Copy file name to clipboardExpand all lines: tutorials/editor/using_the_web_editor.rst
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,8 @@ of the Web platform:
69
69
.. seealso::
70
70
71
71
See the
72
-
`list of open issues on GitHub related to the web editor <https://github.com/godotengine/godot/issues?q=is%3Aopen+is%3Aissue+label%3Aplatform%3Ahtml5+label%3Atopic%3Aeditor>`__ for a list of known bugs.
72
+
`list of open issues on GitHub related to the web editor <https://github.com/godotengine/godot/issues?q=is%3Aopen+is%3Aissue+label%3Aplatform%3Aweb+label%3Atopic%3Aeditor>`__
<https://webassembly.org/>`__ and `WebGL 2.0 <https://www.khronos.org/webgl/>`__
16
15
in the user's browser.
17
16
18
17
.. attention::
@@ -26,21 +25,16 @@ in the user's browser.
26
25
with :kbd:`F12` (:kbd:`Cmd+Option+I` on macOS), to view
27
26
**debug information** like JavaScript, engine, and WebGL errors.
28
27
29
-
.. attention::
30
-
31
-
Godot 4's HTML5 exports currently cannot run on macOS and iOS due to upstream bugs
32
-
with SharedArrayBuffer and WebGL 2.0. We recommend using
33
-
:ref:`macOS <doc_exporting_for_macos>` and :ref:`iOS <doc_exporting_for_ios>`
34
-
native export functionality instead, as it will also result in better performance.
28
+
.. seealso::
35
29
36
-
Godot 3's HTML5 exports are more compatible with various browsers in
37
-
general, especially when using the GLES2 rendering backend (which only
38
-
requires WebGL 1.0).
30
+
See the
31
+
`list of open issues on GitHub related to the web export <https://github.com/godotengine/godot/issues?q=is%3Aopen+is%3Aissue+label%3Aplatform%3Aweb>`__
32
+
for a list of known bugs.
39
33
40
34
Export file name
41
35
----------------
42
36
43
-
We do suggest users to export their Web projects with ``index.html`` as the file name.
37
+
We suggest users to export their Web projects with ``index.html`` as the file name.
44
38
``index.html`` is usually the default file loaded by web servers when accessing the
45
39
parent directory, usually hiding the name of that file.
46
40
@@ -54,13 +48,38 @@ WebGL version
54
48
-------------
55
49
56
50
Godot 4.0 and later can only target WebGL 2.0 (using the Compatibility rendering
57
-
method). There is no stable way to run Vulkan applications on the web yet.
51
+
method). Forward+/Mobile are not supported on the web platform, as these
52
+
rendering methods are designed around modern low-level graphics APIs. Godot
53
+
currently does not support WebGPU, which is a prerequisite for allowing
54
+
Forward+/Mobile to run on the web platform.
58
55
59
56
See `Can I use WebGL 2.0 <https://caniuse.com/webgl2>`__ for a list of browser
60
57
versions supporting WebGL 2.0. Note that Safari has several issues with WebGL
61
58
2.0 support that other browsers don't have, so we recommend using a
62
59
Chromium-based browser or Firefox if possible.
63
60
61
+
.. _doc_exporting_for_web_audio_playback:
62
+
63
+
Audio playback
64
+
--------------
65
+
66
+
Since Godot 4.3, audio playback is done using the Web Audio API on the web
67
+
platform. This **Sample** playback mode allows for low latency even when the
68
+
project is exported without thread support, but it has several limitations:
69
+
70
+
- AudioEffects are not supported.
71
+
- :ref:`Reverberation and doppler <doc_audio_streams_reverb_buses>` effects are not supported.
72
+
- Procedural audio generation is not supported.
73
+
- Positional audio may not always work correctly depending on the node's properties.
74
+
75
+
To use Godot's own audio playback system on the web platform, you can change the
76
+
default playback mode using the **Audio > General > Default Playback Type.web**
77
+
project setting, or change the **Playback Type** property to **Stream** on an
78
+
:ref:`class_AudioStreamPlayer`, :ref:`class_AudioStreamPlayer2D` or
79
+
:ref:`class_AudioStreamPlayer3D` node. This leads to increased latency
80
+
(especially when thread support is disabled), but it allows the full suite
81
+
of Godot's audio features to work.
82
+
64
83
.. _doc_javascript_export_options:
65
84
66
85
Export options
@@ -73,7 +92,7 @@ game in the default browser for testing.
73
92
If your project uses GDExtension **Extension Support** needs to be enabled.
74
93
75
94
If you plan to use :ref:`VRAM compression <doc_importing_images>` make sure that
76
-
**Vram Texture Compression** is enabled for the targeted platforms (enabling
95
+
**VRAM Texture Compression** is enabled for the targeted platforms (enabling
77
96
both **For Desktop** and **For Mobile** will result in a bigger, but more
78
97
compatible export).
79
98
@@ -91,6 +110,59 @@ JavaScript APIs, include CSS, or run JavaScript code.
91
110
To customize the generated file, use the **Custom HTML shell**
0 commit comments