Skip to content

Serve custom textures embedded in js/wasm/mem instead of as separate request #67

@satoshinm

Description

@satoshinm

#56 added server-side texture support, but the client first uses its built-in textures, then downloads and unpacks a texture.zip from the server. This adds latency, would be faster to modify the emscripten output itself to have the custom texture png.

Only problem is: where is the data included within the emscripten .js or .wasm or .mem file? It doesn't seem to be in .mem, at least with release-build-js, though that's where I would expect static data... so it must be in the .js, for some reason a huge array of bytes?! Probably cleaner to find in the .wasm file and replace the binary data, but the plugin isn't serving webassembly yet (#57), and even if it was, what about the js fallback.

What are the tools available to programmatically alter emscriptenifed bundles?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions