Unable to run Godot without the use of threads and SharedArrayBuffer
on the web platform
#85938
Milestone
SharedArrayBuffer
on the web platform
#85938
Tested versions
System information
n/a
Issue description
It is now currently impossible to use Godot 4.x on the web without
SharedArrayBuffer
s.Here's the popup that appears if the editor page is hosted on a server that doesn't have the required headers (COEP and COOP) in order to enable
SharedArrayBuffer
API.This is understandable for the ability to run threads, as it is not possible to have access to the
SharedArrayBuffer
API without these headers, which is a requirement to run PTHREADS with Emscripten.Enabling these headers is not easy unless you're the owner of the hosting service, unless the hosting service offer an easy way to enable these headers or if you use a custom service worker (which is not easy by itself).
But enabling these headers bring their lot of problems too. It is not possible to communicate with thirdparty websites, due to browsers implementing this as a way to counter Spectre and Meltdown vulnerabilities.
Unfortunately, it also means that ads cannot easily be placed in games, limiting significantly their monetization.
For all these reasons, it would be much easier to run Godot without the use of
SharedArrayBuffer
and threads.Steps to reproduce
n/a
Minimal reproduction project (MRP)
n/a
The text was updated successfully, but these errors were encountered: