-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
Reuse prefetched tiles to avoid empty screen #2668
Reuse prefetched tiles to avoid empty screen #2668
Conversation
Bloaty Results (iOS) 🐋Compared to main
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results-ios/pr-2668-compared-to-main.txt |
Bloaty Results 🐋Compared to main
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-2668-compared-to-main.txtCompared to d387090 (legacy)
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-2668-compared-to-legacy.txt |
Benchmark Results ⚡
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/benchmark-results/pr-2668-compared-to-main.txt |
This test is failing:
|
I will have to update the tests. |
…order to fix an issue when zooming out many levels.
for more information, see https://pre-commit.ci
…github.com/alexcristici/maplibre-native into reuse-rendered-tiles-to-avoid-empty-screen
for more information, see https://pre-commit.ci
Tests are passing, PR is ready for review. |
@louwers Should be fine now. Please check again. |
for more information, see https://pre-commit.ci
That looks better! |
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@louwers Not sure why precommit is failing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Have you tried it in overscaled and wrapped cases? It doesn't look like the new tests consider them.
Yes, overscaled works good. |
When zooming out if needed tile is not loaded or not in cache it will try to use the prefetched tiles from a higher zoom level.
Before:
Before.MP4
After:
After.MP4
Recordings are from Debug iPhone 6s so the behavior to be more visible, release build is much faster.
Before:
Before.MP4
After:
After.MP4