Hey, just wanted to give heads up here about a feature change we are looking to make:
For a long time, Emscripten has had a feature where when one preloads files with the --preload-file command line option or the file_packager.py script, all image and audio files in those file packages will be immediately fed to the browser for decoding at page startup. The reason why this occurs is because asset decoding in browsers is inherently asynchronous, and SDL 1 asset loading needed a synchronous path, so decoding was done as a "warm-up" step in advance to ensure synchonous and immediate access to the decoded asset data. However this behavior is most likely not used and not desirable for most users (slow startup, large memory usage), and we are looking to disable it by default. See issue https://github.com/kripken/emscripten/issues/3785 for more discussion. The feature itself would not go away, but it would become an opt-in behavior instead. The reason why we feel strongly about making this disabled by default is that it often bites developers when they don't know that this behavior is occurring under the hood, and it seems less damage to have it be disabled by default. Does anyone use this feature? It is possible that certain SDL1-based applications will require an added build flag. If you have concerns about this, please post in the bug above. Thanks! Jukka -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
