Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Load models asynchronously #10

Open
VictorKoenders opened this issue May 29, 2020 · 0 comments
Open

Load models asynchronously #10

VictorKoenders opened this issue May 29, 2020 · 0 comments

Comments

@VictorKoenders
Copy link
Contributor

When models are loaded they block the main thread. This can take up several seconds, especially in debug mode.

It would be nice if models were loaded asynchronously or in a background thread.

ModelHandle could have an pub fn is_loaded() -> bool { self.data.read().model.is_loaded } which allows the developer to check if the model is done loading. Iterating over the models that are not loaded would allow developers to show a progress bar.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant