1. Yes, the main loop and async_wget etc. APIs are not related. Although,
you might want to pause the main loop while waiting, but whether that makes
sense for the app depends on the app.

2. Yes, still true.

3. I'm not sure how to check if a file exists remotely aside from trying to
load it and seeing if it succeeds. In other words, you can just see if you
get the async_wget error callback?

No architecture issue. But given that, you might want to pause the main
loop until all the data you need for the main loop arrives.

On Thu, Oct 15, 2015 at 10:41 AM, Robert Goulet <robert.gou...@autodesk.com>
wrote:

> Hi all,
>
> I have a few questions about asynchronous file system API:
>
>    1. Can we use emscripten_async_wget or other async methods before we
>    enter the emscripten main loop?
>    2. The documentation says "*In addition to fetching the URL from the
>    network, the contents are prepared so that the data is usable in IMG_Load
>    and so forth...*" Is this still true in *1.34.12*? I recall there was
>    a change to disable content preparation by default; does this apply to
>    these functions or are they still preparing content?
>    3. I don't see any API to verify if a file exist before we async wget
>    it, would it be possible to add an API that only tell us if the file exist
>    on the server?
>
> In our engine, the way it currently is we load resources asynchronously,
> but it must be completed before we start the update/render loop. Would that
> be an architecture issue?
>
> Thanks!
>
> --
> 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 emscripten-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 emscripten-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to