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

tweak tile load order #119

Merged
merged 9 commits into from
Dec 24, 2024
Merged

tweak tile load order #119

merged 9 commits into from
Dec 24, 2024

Conversation

rafaqz
Copy link
Collaborator

@rafaqz rafaqz commented Dec 23, 2024

This PR tweaks tile load order mostly following #115

There is a bit of cleanup of names with current_tiles => foreground_tiles for clarity, but the main change is adding offscreen tiles as separate from background tiles, and loading tiles background -> foreground -> offscreen.

We usually want background tiles plotting first as they are low-resolution and can fill the view immediately. Foreground tiles load after that. Then offsecreen/halo tiles can load last after everything visible has loaded, to be ready for zooming and panning.

The other change is to make mouse-first loading work again, so the sweep of tile loading is less visible and the tile you want to look at loads first.

@rafaqz rafaqz requested a review from SimonDanisch December 23, 2024 11:59
@rafaqz rafaqz requested a review from asinghvi17 December 23, 2024 12:07
@lazarusA
Copy link
Collaborator

just a minor test error.

@asinghvi17
Copy link
Member

I'll need to work on the merge of new master into this, since my geomakie pr replicates some of the functions that this touches. Maybe we want to introduce some more API functions to avoid the duplication though.

@rafaqz
Copy link
Collaborator Author

rafaqz commented Dec 23, 2024

Ok @asinghvi17 its good from my side if you want to handle the merge

@asinghvi17 asinghvi17 merged commit e5d5618 into master Dec 24, 2024
3 checks passed
@asinghvi17 asinghvi17 deleted the rs/load_order branch December 24, 2024 05:28
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.

3 participants