Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

What about multithreading?

A topic by brishao created 2 days ago Views: 56 Replies: 2
Viewing posts 1 to 2

Hello! I didn't find any information about this topic, so I'm asking here. Can I upload a game on itch that uses multiple threads and will users be able to play it? I heard that browsers have some limitations related to threads.

Thanks for any information.

(+1)

In my limited web knowledge, I understand that in order to share information between different threads, you need to use "sharedarraybuffer." Unfortunately, this feature represents a potential security risk and can therefore only be used if the website has certain headers enabled to prevent these risks.

There is an admin post that discusses this, although it is focused on Godot, since web applications exported from Godot used multithreading. Unfortunately, I've read that this has caused several problems (for example, you can't have a downloadable version on the same page that has "sharedarraybuffer" enabled). The last thing I read was that people using Godot tried to use the latest version that allows exporting to the web in single thread instead of using multithreading and sharedarraybuffer.

Thank you!