Skip to content

Enable async loads of Scenes #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 28, 2022
Merged

Enable async loads of Scenes #48

merged 5 commits into from
Oct 28, 2022

Conversation

karnkaul
Copy link
Member

@karnkaul karnkaul commented Oct 28, 2022

Close #44

- Don't expose `Glfw::Window` through engine; users should not be able to access `Glfw` directly.
- Return entire state in `Engine::poll()` instead of just delta time.
Takes an optional `on_done` callback; loaded scene swapped and callback invoked on poll thread (during `poll()`).

TODO: solve progress notification across the threads.
Algorithm for deferring existing requests is buggy: get random malloc "unaligned fastbin chunk detected" crashes, attempts to root cause have been unsuccessful.
Winding back to storing a single request and denying subsequent ones until the stored one is idle.
@karnkaul karnkaul added this to the v0.1 milestone Oct 28, 2022
@karnkaul karnkaul marked this pull request as ready for review October 28, 2022 18:54
@karnkaul karnkaul merged commit baa4a73 into main Oct 28, 2022
@karnkaul karnkaul deleted the 44-async-load branch October 28, 2022 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Async scene loads
1 participant