-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Update to shelf pack v2 #2954
Update to shelf pack v2 #2954
Conversation
Awesome! Some kind of weird blow up happened in one of the render tests but it seems unrelated so I'll try to rerun and see if it persists. Update: passed. |
Niiiice 🎉 cc @xrwang @lbud @amyleew @nickidlugash |
Hoping to improve the debug page a bit today, then make the changes to reuse bins and record some before/after pics.. |
\o/ This is fantastic, thank you for making the time to do this @bhousel !! |
Nice @bhousel !! |
Just dropping an update here - 24ed82f does unref glyphs when a tile unloads, however this didn't improve the glyph atlas congestion as much as I had hoped because.. tiles don't really unload often.. The source cache holds on to them for a while. So I'm going to look into more clever ways to update the glyph atlases so that they contain only glyphs on visible tiles. |
0bbbbbc
to
7c49869
Compare
This prevents artifacts when bins are reused and a smaller glyph takes the place of a larger one.
I am closing this PR because it has been inactive for a long time. The branch isn't going anywhere so please keep working on this feature and re-open the PR when it is ready! Let me know if you have any questions. |
I released shelf pack v2 today! It includes reference counting, which will let us reuse parts of the glyph atlases (#141) and symbol atlases (#2164) that aren't used to render visible tiles. This will keep the atlases from growing so big when rendering CJK labels and other interesting maps.
I haven't made the changes in the atlas code yet to support the new reference counting yet - so don't merge!
To better visualize what the atlases are doing, I made this cool debug page that will let us look at them:
More coming soon!