Davidobot / love.js

LÖVE ported to the web using Emscripten, updated to the latest Emscripten and LÖVE (v11.5)
MIT License
605 stars 27 forks source link

Demo examples throw exception (SharedArrayBuffer) #80

Open thelazyone opened 1 year ago

thelazyone commented 1 year ago

The four linked examples in the readme.md seem to be faulty on my machine (Windows, both on Chrome and Firefox), all prompting to "see JavaScript console".

The console has this message (shown in Firefox): image

I encountered the same problem when deploying without the -c option myself. Adding the -c solved it for me.

alexjgriffith commented 5 months ago

SharedArrayBuffers have been disabled by default in more recent versions of all major browsers. They can be enabled in the HTTP header. For love.js this is only an issue for the optimised build target. The compatibility build target should work without SharedArrayBuffers (benefits of running without workers).

Leafo has a good write up on the issue and how to address it at https://itch.io/t/2025776/experimental-sharedarraybuffer-support