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
WebGL / Filter geometries before processing them for rendering #15416
Open
jahow
wants to merge
6
commits into
openlayers:main
Choose a base branch
from
jahow:webgl-filter-geometry-earlier
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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
📦 Preview the website for this branch here: https://deploy-preview-15416--ol-site.netlify.app/. |
tschaub
reviewed
Dec 9, 2023
tschaub
reviewed
Dec 9, 2023
tschaub
reviewed
Dec 9, 2023
5 tasks
Evaluation contexts are now initialized with every properties set to UNKNOWN_VALUE. If an expression needs an input which is unknown, it will return UNKNOWN_VALUE.
Also added some tests for string assertion
This makes sure that icons are loaded before rendering
This will be used to filter out features that will eventually be rendered
jahow
force-pushed
the
webgl-filter-geometry-earlier
branch
from
December 15, 2023 10:34
3bef70a
to
6cc7405
Compare
jahow
force-pushed
the
webgl-filter-geometry-earlier
branch
from
December 22, 2023 13:27
6cc7405
to
8166059
Compare
jahow
force-pushed
the
webgl-filter-geometry-earlier
branch
from
December 22, 2023 13:53
8166059
to
ce9daca
Compare
I added some missing tests, still very much open to suggestions and ideas on this! thanks!! |
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.
This PR introduces a
filter()
method on theMixedGeometryBatch
class. Before generating WebGL buffers from a geometry batch, theVectorStyleRenderer
will apply the style filter and exclude from the batch any geometry that does not match this filter. The style filter expression is evaluated on the CPU.Some filters might not be evaluated at buffer generation time (e.g. a filter depending on
time
orresolution
which are dynamic parameters). This entails that the filter is also still applied on the GPU (fragment shader) to make sure that we filter our all relevant features at any given frame.This change typically makes vector tiles processing a little bit longer, but is essential when rendering styles composed of dozens of different rules where it provides a huge performance boost.
Rebased on #15415
Part of #15413