this post was submitted on 21 Dec 2023
74 points (100.0% liked)

Godot

5840 readers
6 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

founded 1 year ago
MODERATORS
 

Pictured: My Godot 4 game running on CrazyGames. This was previously impossible because most websites don't support SharedArrayBuffers/CrossOriginIsolation, which was required to run Godot on the web.

Today is a glorious day for us webgame developers. Godot 4 is finally viable to use thanks to this PR which should be merged by 4.3

This allows you to force the exported game to run on a single thread, meaning you don't need any special headers and your game should be able to run anywhere on the internet. This has the added benefit of making the games work properly on MacOS/iOS, which for some reason had serious issues with SharedArrayBuffers causing the browser to freeze.

Brings a tear to my eye, really. I might not need Unity for my next project.

top 10 comments
sorted by: hot top controversial new old
[–] GammaGames@beehaw.org 5 points 10 months ago (2 children)

YAY!! I remember trying to prototype a mobile game through itch and the array buffers made it impossible, I should re-export it and try again

[–] popcar2@programming.dev 7 points 10 months ago* (last edited 10 months ago) (1 children)

Note that this change hasn't been merged into the engine yet. If you're impatient like me and want to export anyways you can grab this PR's build and no_threads template from the top right here (artifacts) and export using that.

[–] GammaGames@beehaw.org 4 points 10 months ago

Well I guess until then I’ll just be waiting… for godot

[–] sirdorius@programming.dev 3 points 10 months ago

itch has support for SharedArrayBuffer. You just need to enable this in the options. I tried this like a year ago and it also worked on mobile

[–] tab@mastodon.gamedev.place 5 points 10 months ago

@popcar2 guess I've been lucky, just enabled sharedarraybufffer and worked on itch

[–] Kylamon1@lemmy.world 3 points 10 months ago* (last edited 10 months ago)

If true I may actually switch from 3.5 to 4.3. Thanks for the info good sir.

[–] fleeky@prsm.space 2 points 10 months ago

@popcar2 holy moly awesome news !

[–] approxamatrix@lemmy.world 1 points 10 months ago
[–] db0@lemmy.dbzer0.com 1 points 10 months ago

Oh damn! This is great!

[–] kryllic@programming.dev 1 points 10 months ago

Awesome! Glad this persistent issue has been addressed!