Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Implement headers to use SharedArrayBuffers in firefox (and chrome in the future).

A topic by Deep-Fold created Apr 22, 2021 Views: 629 Replies: 1
This topic is archived. It is unlisted and no new posts can be made.
Viewing posts 1 to 3

Newer Godot releases allow for HTML5 exports using multithreading. These exports however make use of the SharedArrayBuffer Javascript feature. Unfortunately, in Firefox (and from may onwards in Chrome) this functionality is only available to pages that are cross-origin isolated. This can only be done by itch.io itself. I suggest itch.io implements the thse headers to support this feature.

Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp

Links with more info:

https://developer.chrome.com/blog/enabling-shared-array-buffer/

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects...

Admin

We already have a topic about it here: https://itch.io/t/1332996/cross-origin-isolation-to-unblock-wasm-sharedarraybuffers

Going to close this one to avoid duplicate discussion.

Thanks

Admin archived this topic