Skip to content

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