Skip to content

TilesRendererBase: Add "loadParents" flag for "optimizedLoadStrategy" traversal#1533

Draft
gkjohnson wants to merge 5 commits intomasterfrom
load-parent-tiles
Draft

TilesRendererBase: Add "loadParents" flag for "optimizedLoadStrategy" traversal#1533
gkjohnson wants to merge 5 commits intomasterfrom
load-parent-tiles

Conversation

@gkjohnson
Copy link
Copy Markdown
Contributor

@gkjohnson gkjohnson commented Mar 25, 2026

Related to #1426

Adds TilesRenderer.loadParentTiles flag to switch to loading parent tiles when optimizedLoadStrategy is true. This will allow for both types of load behavior with a single set of traversal functions.

TODO

  • Review
  • Test
  • Clean up
  • Resolve what happens when loadSiblings & loadParents are set to true
  • Consider making loadParents behave more like the legacy strategy
    • parents should be leaf tiles / active if the child tiles are not loaded, yet.
    • loadSiblings and loadParents cannot be set to true simultaneously
  • Determine what to do when the cache is full in order to avoid tile gaps.
    • also if the cache is full then the low LoD tiles will never be unloaded.
    • Only a problem with optimized strategy

Next

  • Mark "optimizedLoadStrategy" as true by default, log deprecation warning when setting it to "false".

@gkjohnson gkjohnson added this to the v0.4.24 milestone Mar 25, 2026
@gkjohnson gkjohnson changed the title TilesRendererBase: Add "loadParentTiles" flag for "optimizedLoadStrategy" traversal TilesRendererBase: Add "loadParents" flag for "optimizedLoadStrategy" traversal Mar 25, 2026
@gkjohnson gkjohnson modified the milestones: v0.4.24, v0.4.25 Apr 3, 2026
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.

1 participant