Skip to content
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

Closed
wants to merge 8 commits into from
Closed

Update to shelf pack v2 #2954

wants to merge 8 commits into from

Conversation

bhousel
Copy link
Contributor

@bhousel bhousel commented Aug 8, 2016

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:

glyph atlas debug

More coming soon!

@mourner
Copy link
Member

mourner commented Aug 9, 2016

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.

@mollymerp
Copy link
Contributor

Niiiice 🎉 cc @xrwang @lbud @amyleew @nickidlugash

@bhousel
Copy link
Contributor Author

bhousel commented Aug 9, 2016

Hoping to improve the debug page a bit today, then make the changes to reuse bins and record some before/after pics..

@xrwang
Copy link
Contributor

xrwang commented Aug 9, 2016

\o/ This is fantastic, thank you for making the time to do this @bhousel !!

@bhousel
Copy link
Contributor Author

bhousel commented Aug 9, 2016

glyph atlas debug2

@amyleew
Copy link

amyleew commented Aug 9, 2016

Nice @bhousel !!

@bhousel
Copy link
Contributor Author

bhousel commented Aug 12, 2016

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.

@bhousel bhousel force-pushed the shelf-pack-v2 branch 2 times, most recently from 0bbbbbc to 7c49869 Compare August 14, 2016 18:13
This prevents artifacts when bins are reused and a smaller glyph takes the place of a larger one.
@lucaswoj
Copy link
Contributor

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.

@lucaswoj lucaswoj closed this Nov 22, 2016
@jfirebaugh jfirebaugh deleted the shelf-pack-v2 branch February 3, 2017 18:02
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.

6 participants