Threads in HTML

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Isccb

Is there any way to have threads working for HTML5?

Support for WebAssembly threads is being rolled out in browsers, but Godot hasn’t been modified to use WebAssembly threads yet. This might happen in 4.0.

Calinou | 2020-07-23 08:08

Choose the Threads option when exporting for web.

opyate | 2022-07-09 16:25

:bust_in_silhouette: Reply From: klaas

HI,
i dont think so.

But you can implement web workers by your own. The drawback is, you have to poll the return by the engine script since it is not possible to call godot functions from javascript.

Dont know if this fits your needs.