Live data from Hacker News

Show HN: Porting Terraria and Celeste to WebAssembly

velzie.rip

1–10 of 55 posts

Re: Show HN: Porting Terraria and Celeste to WebAssembly

#9

Getting firebase "bandwidth quota exceeded" error when trying the demo. You shouldn't have to worry about this kind of stuff if it's just a static site. I'd host this on a cdn like cloudflare or github pages (free!).

My bad! Switched over to the github pages fallback. Cloudflare pages isn't suitable because the wasm files (100mb+) exceed the 25mb limit. (i could bypass this with service worker jank but that tends to be fragile). Github Pages also isn't suitable because it doesn't have a native way of sending the coi/coep headers that are required for SharedArrayBuffer to be available. Can also bypass that with service worker jank but I would prefer not to

Re: Show HN: Porting Terraria and Celeste to WebAssembly

#10

Getting firebase "bandwidth quota exceeded" error when trying the demo. You shouldn't have to worry about this kind of stuff if it's just a static site. I'd host this on a cdn like cloudflare or github pages (free!).

My bad! Switched over to the github pages fallback. Cloudflare pages isn't suitable because the wasm files (100mb+) exceed the 25mb limit. (i could bypass this with service worker jank but that tends to be fragile). Github Pages also isn't suitable because it doesn't have a native way of sending the coi/coep headers that are required for SharedArrayBuffer to be available. Can also bypass that with service worker jank…

btw: this results in a white page on the first load until you manually reload, since the SW has not been loaded yet. May want to force a page reload on the SW install event to fix.

also: this is incredibly cool. thanks for writing this up and sharing!

Post reply on HN