-
Notifications
You must be signed in to change notification settings - Fork 82
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
Deferred load AudioElement
code unless needed
#267
Comments
Thanks for the suggestion, this is surely something i should look into. Since you mentioned AudioElement ... Dartium is super old, i'm waiting for a bugfix for AudioElement and WebAudio API that was fixed in Chrome 50. |
We're working on that, too. 😄 |
On second thought, maybe not. The overhead of compiling in the deferred loading infrastructure is greater than the savings of defer loading Audio and Mock sound things. 🤷♂️ |
See this branch: https://github.com/kevmoo/StageXL/tree/deferred_audio |
If one had an app that was already using deferred loading, I think you would get some help here. I could imagine that being the case w/ a game with defer-loaded levels, etc. |
https://www.dartlang.org/guides/language/language-tour#deferred-loading
One thing on code size: you have a lot of
if X, do Y, else do Z
code in StageXL.Great for flexible runtime behavior, but you end up paying for Y and Z even if only one is used.
You may get traction by deferred loading the fallback logic in some cases – like
AudioElement
.The text was updated successfully, but these errors were encountered: