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

Improve tile lifecycle determinism #2819

Merged
merged 8 commits into from
Sep 12, 2024

Conversation

mwilsnd
Copy link
Collaborator

@mwilsnd mwilsnd commented Sep 10, 2024

Addresses some observed behavior in the lifetime of tiles that wasn't initially expected. This PR makes some minor changes to how GeometryTiles update their pending status, to better reflect what the tile is actually doing. One of the more interesting observations is how a tile pyramid's call to setLayers() can dispatch a task on the worker thread before the tile has even loaded.

This PR should address #2807

@mwilsnd mwilsnd added the bug Something isn't working label Sep 10, 2024
@mwilsnd mwilsnd self-assigned this Sep 10, 2024
Copy link

github-actions bot commented Sep 10, 2024

Bloaty Results (iOS) 🐋

Compared to main

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%    +688  [ = ]       0    TOTAL

Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results-ios/pr-2819-compared-to-main.txt

Copy link

github-actions bot commented Sep 10, 2024

Bloaty Results 🐋

Compared to main

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0% +4.66Ki  +0.0%    +800    TOTAL

Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-2819-compared-to-main.txt

Compared to d387090 (legacy)

    FILE SIZE        VM SIZE    
 --------------  -------------- 
   +27% +31.7Mi  +423% +25.3Mi    TOTAL

Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-2819-compared-to-legacy.txt

Copy link

github-actions bot commented Sep 10, 2024

Benchmark Results ⚡

Benchmark                                                     Time             CPU      Time Old      Time New       CPU Old       CPU New
------------------------------------------------------------------------------------------------------------------------------------------
OVERALL_GEOMEAN                                            +0.0053         +0.0055             0             0             0             0

Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/benchmark-results/pr-2819-compared-to-main.txt

@mwilsnd mwilsnd marked this pull request as ready for review September 11, 2024 13:58
@louwers
Copy link
Collaborator

louwers commented Sep 11, 2024

Looks like it will also fix #2826!

@louwers louwers merged commit 1c07a94 into maplibre:main Sep 12, 2024
41 of 42 checks passed
@louwers louwers deleted the tile-lifecycle-improvements branch September 12, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants