[WebExport settings] [itch.io] What to use for 2D and 3D?

Just tested yesterday some few more games in browser using Firefox on Mac ( as previously Safari caused some massive memory leak :man_shrugging: on some game )

What this topic is about ?

How to setup webexport template in Godot that will works fine on itch.io

Ok , what I tried ?

Simple 2d platformer , with one level set as opening level , it use mouse and axis x and axis y to jump .

This is done from 4.6 stable release compiled for Apple Silicone only , and templates are downloaded from official mirror .

What went wrong ?

First when tried Thread Support , packed all in zip and of course execute was named index.html only black screen appeared on itch.io and locally.

When turned that off it start load but stop somewhere around half way and staying there .

So this make me wonder , if someone do exports what setting should we use for itch.io to keep it happy .

Also this was help me isolate problem if is browser , compiled version , template , some setting , or other problem .

( Game runs run locally btw )

Ok main difference is you need to switch to Compatibility from Forward+ while export to Web.

ok here is example Godot Editor for export

  1. What does Thread Support actually do, and which devices can take advantage of it ?
  2. Extensions Support - is this mean plugin, GDExtension or some extension in browser ?
  3. Progressive Web App - ok what this feature do ?
  4. Features - shall we add some extra here when do export to itch.io ?

So if project is on compatibility , and all on default the export setting and you try open index.html from folder this will pop’s up . So does it need to run on server ?

Ok itch.io - shall we enable or manually set viewport here ?

this seem to be most reasonable setting.

so with this settings, basic 2D platformer seem to work.

  • what about mouse , can you control hide it ?

Check SharedArrayBuffer support

1 Like

ok did, what difference does it makes ?

it’s required if you use threads. Check the extensive documentation : Exporting for the Web — Godot Engine (4.x) documentation in English

1 Like