funexpected / godot-flash-module

MIT License
39 stars 3 forks source link

HTML export is of very large size #16

Open surendra019 opened 1 year ago

surendra019 commented 1 year ago

I exported my project on HTML5 export and it works but the export size is about 180 mb, the size is caused because of the .wasm file of the export template which is that much large. the .wasm file in the normal export template is of about 17mb. any solution?

jkb0o commented 11 months ago

Did you compile wasm template with some release flag, like target=release?

jkb0o commented 11 months ago

In the instruction from #14 there is the line:

scons platform=javascript target=debug javascript_eval=no

The debug builds (target=debug) produces the huge binaries. Replace it with target=release and you should be fine.

surendra019 commented 11 months ago

that issue is solved now a new issue is encountering, the console gives this error. This is only encountered when I make export templates after integrating flash. without flash it works fine. please help. I used Godot's v3.5.3, same issue is encountering in v3.4.5, 3.3.4. I also used v3.3.1, but in that when I try to generate export templates for release it throw a set of errors in the browser's console. Please share me the templates generated by you of v3.5.3 . This issue is encountering in every build of web export templates.

I use command scons p=javascritpt target=release tools=no for templates

Screenshot 2023-11-21 161454

surendra019 commented 11 months ago

please reply sir