Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run Godot without the use of threads and SharedArrayBuffer on the web platform #85938

Closed
adamscott opened this issue Dec 8, 2023 · 0 comments · Fixed by #85939
Closed

Comments

@adamscott
Copy link
Member

Tested versions

  • Reproducible in: Godot 4.x
  • Not reproducible in: Godot 3.x

System information

n/a

Issue description

It is now currently impossible to use Godot 4.x on the web without SharedArrayBuffers.

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.

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants