-
Notifications
You must be signed in to change notification settings - Fork 240
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
Support for remote fonts #874
Conversation
fc5f430
to
10d86d6
Compare
@@ -257,6 +257,11 @@ void Map::resize(int _newWidth, int _newHeight) { | |||
|
|||
bool Map::update(float _dt) { | |||
|
|||
// Wait until font resources are fully loaded | |||
if (impl->scene->fontContext()->resourceLoad > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can do something similar for any uri resource from the scene.
"Wait until texture resources are loaded".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make sense to do this in render` call for texture resources, since these are not required for "tile building" which happens in the update loop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes there's a slight difference between remote texture resource and remote font resource:
- remote texture resource doesn't lock tile building and will render the black texture until being fetched
- remote font resource would lock tile building and thus rendering
I guess there's also some upcoming work to go in #814 for that concern.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, my comments were in reference to #814 only.
This looks good to me. |
#839