Hey guys,
I've been doing a fair amount of work with the filesystem layer in emscripten lately and I was wondering if anyone is making heavy use of the current lazy file loading with createLazyFile and if so, what's the use case?
I know I'd originally used it to get my quake engine port up off the ground. However, as the data grew, sync XHR request quickly became problematic (unresponsive script warnings, couldn't update the UI, etc.). In the end I had to async load all of my data from a CDN and manually populate the filesystem at load.
With that said, for large data it doesn't really seem like a good solution (unless perhaps you're using it in the context of a WebWorker?), and if you're not needing to load large amounts of data, it seems it'd be sufficient to preload the data needed for the application with emscripten's file packager.
Anyways, I currently feel the functionality could stand to be deprecated, but I wanted to query and see how it's actually being used first.
Cheers,
Anthony