-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
introduce elementGroups and re-organize buckets #461
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This starts bringing rendering closer to how its done in -native. Lines are added to a single vertex and element buffer. If the number of vertices exceeds the maximum number, instead of creating a new buffer it creates a new element group, and stores the offset of that group into the buffer.
break geojson, but fix build
Some buckets may need to download resources (like glyphs) before begin parsed. These are now all started first so that a previous bucket doesn't need to be finished before starting to donwnload the next bucket's glyphs. Also, placement only matters for buckets with placement. Buckets that don't have placement (lines, fills) don't need to wait until the previous bucket finishes. Basically: - start downloads stuff as early as possible - don't enforce order where it isn't necessary
@ansis moved over the assertions from geometry.test.js from master to handle fill/line/point. I'm seeing textbucket as hard to test in this context -- and getting tested via https://github.com/mapbox/mapbox-gl-js/blob/element-groups/test/text-placement.js |
Tested with our demo styles as well. |
This is great, much cleaner now. |
thanks for adding tests |
ansis
added a commit
that referenced
this pull request
Jun 17, 2014
introduce elementGroups and re-organize buckets
bensleveritt
pushed a commit
to bensleveritt/mapbox-gl-js
that referenced
this pull request
Oct 24, 2016
bensleveritt
pushed a commit
to bensleveritt/mapbox-gl-js
that referenced
this pull request
Oct 24, 2016
Fix out-of-bounds dragging in direct_select; closes mapbox#461
lucaswoj
pushed a commit
that referenced
this pull request
Jan 11, 2017
* First pass at icon-text-fit, icon-text-fit-padding properties * Support specifying padding independently on all 4 sides
karimnaaji
pushed a commit
that referenced
this pull request
Mar 14, 2023
… conditionally in fill extrusion, ground shadow, and line fragment shaders (#461)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
why:
todo:
add tests for textbucketcovered bytext-placement