FreeBasic+Emscripten+OpenB3D: sky is the limit

Emscripten, WASM, and asm.js related questions
srvaldez
Posts: 3389
Joined: Sep 25, 2005 21:54

Re: FreeBasic+Emscripten+OpenB3D: sky is the limit

Post by srvaldez »

hi angros47
I use FireFox on Windows 10, the demo works however it gives a wasm compile fail
wasm streaming compile failed: TypeError: Response has unsupported MIME type airplane.tiiny.site:138:19
printErr https://airplane.tiiny.site/:138
instantiateAsync https://airplane.tiiny.site/air.js:1774
(Async: promise callback)
instantiateAsync https://airplane.tiiny.site/air.js:1771
(Async: promise callback)
instantiateAsync https://airplane.tiiny.site/air.js:1769
createWasm https://airplane.tiiny.site/air.js:1797
<anonymous> https://airplane.tiiny.site/air.js:8659

falling back to ArrayBuffer instantiation airplane.tiiny.site:138:19
printErr https://airplane.tiiny.site/:138
instantiateAsync https://airplane.tiiny.site/air.js:1775
(Async: promise callback)
instantiateAsync https://airplane.tiiny.site/air.js:1771
(Async: promise callback)
instantiateAsync https://airplane.tiiny.site/air.js:1769
createWasm https://airplane.tiiny.site/air.js:1797
<anonymous> https://airplane.tiiny.site/air.js:8659
if I click on full screen it freezes with the following error
Module.requestFullScreen has been replaced by Module.requestFullscreen (without a capital S) airplane.tiiny.site:138:19
printErr https://airplane.tiiny.site/:138
abort https://airplane.tiiny.site/air.js:1602
requestFullScreen https://airplane.tiiny.site/air.js:4652
Module_requestFullScreen https://airplane.tiiny.site/air.js:8496
onclick https://airplane.tiiny.site/:1

Uncaught Error: undefined air.js:1613:11
abort https://airplane.tiiny.site/air.js:1613
requestFullScreen https://airplane.tiiny.site/air.js:4652
Module_requestFullScreen https://airplane.tiiny.site/air.js:8496
onclick https://airplane.tiiny.site/:1
angros47
Posts: 2331
Joined: Jun 21, 2005 19:04

Re: FreeBasic+Emscripten+OpenB3D: sky is the limit

Post by angros47 »

The compile fail is not a real problem, as far as I understand (if it really failed, the demo wouldn't start). As far as I understand, it is unable to download the wasm file in a way, and falls back to another solution, it's not a FreeBasic bug

The failure to work in fullscreen mode instead is a bug, although for now I don't know yet how to fix it.
paul doe
Moderator
Posts: 1745
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: FreeBasic+Emscripten+OpenB3D: sky is the limit

Post by paul doe »

Hey, angros47.

I tested the new version and it runs as expected (with all the above quirks you stated). No problems to report other than those (framerates seem to be consistent). So, way to go...
Post Reply