How to optimize game for export in html5 ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By axenlader
:warning: Old Version Published before Godot 3 was released.

Hi.

I have released yesterday a game on kongregate.
It works well on my computer but I have a lot of messages of players telling me that the game lag, the focus stays on the last pressed buttons and sometimes in doesn’t even run.
Is this a bug of Godot or should I have to optimize my texture or such things ?
The game is available here : Play Brew My Beer, a free online game on Kongregate

Thank you

:bust_in_silhouette: Reply From: Akien

It’s most likely a Godot/Emscripten issue. Our current export template for HTML5 is working, but the performance it offers is quite poor, and highly subject to the browser used, the extensions enabled by the users, etc.

There are maybe a couple things you could do to improve performance, but more likely you’ll have to wait for Godot to improve the performance of its HTML5 export. It’s one of the objectives of the Mozilla grant we received a couple months ago, and should be fully implemented in Godot 3.0 early next year, with WebGL 2.0 renderer, WebAssembly, etc.

So, for HTML5, we’re all Waiting for Godot :slight_smile:

Thank you very much.
Too bad. The rest of the engine is really awesome.
Can’t wait for the next version :slight_smile:

axenlader | 2016-08-10 10:07