satoshinm / NetCraft

Web-based fork of fogleman/Craft ⛺
https://satoshinm.github.io/NetCraft/
MIT License
57 stars 13 forks source link

Try --separate-asm flag to emcc to Avoid memory spikes by separating out asm.js #57

Closed satoshinm closed 7 years ago

satoshinm commented 7 years ago

https://kripken.github.io/emscripten-site/docs/optimizing/Optimizing-Code.html#avoid-memory-spikes-by-separating-out-asm-js says --separate-asm can improve performance / page load times by separating out the asm.js code from other JavaScript, ought to try this.

https://github.com/satoshinm/WebSandboxMC would need updating to serve the separate files, and when deploying on gh-pages, would also need to add this file too.

satoshinm commented 7 years ago

This is a known problem on Chrome (other browsers do not seem to have this issue).

The bug they are referring to is now fixed: https://bugs.chromium.org/p/v8/issues/detail?id=4392 - don't think NetCraft needs this.