Repository navigation
feat(geo-layers): coverage LOD tile prefetching (1/2) - #10306
charlieforward9 wants to merge 4 commits into
Conversation
chrisgervang
left a comment
There was a problem hiding this comment.
There are a couple of interesting things in the demo that I'm not really sure how to improve:
- As the low-resolution tiles are loading in and the high-resolution tiles are loading on top, I can see almost like a parallax or perspective shift between the low-res and high-res tiles. I'm curious what the root cause of that is.
- I see a lot of z-fighting as we zoom into the final destination in New York between the low-res and high-res tiles. There's a lot of z-fighting in the before as well, so this isn't a regression and more a limitation with our renderer
I wrote a draft of docs for this that I'll push up for you to review.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4be9e53. Configure here.
Almost certain this is a
Yeah it resolves ever-so-slightly faster in the new strategy due to the center priority, but its nowhere near as bad when testing with the |
1321c68 to
149a855
Compare
a32e93b to
2b5d3cc
Compare
Willing to put this into the 9.4 release as a means of moving this forward without the risk of regression? |
|
@copilot resolver los conflictos de combinación en esta rama. |
Merge conflicts resolved in 4f61a0b (initial merge) and fixed in the follow-up commit. The resolution:
All 29 tests pass. |
[High impact] No blocking issues were found in the reviewed code. SummaryAdds opt-in tile coverage prefetching so coarse tiles can remain visible while sharper tiles load.
No new actionable issues found. The earlier eviction, globe fallback, and release-note concerns are addressed. The demo lockfile concern was withdrawn after charlieforward9 explained that test apps use the root lockfile and ignore nested lockfiles.
|
Add the opt-in `lodStrategy: 'coverage'` tileset option. For the selected tiles of each view it requests the parent and the ancestor at `minZoom` (zoom 6, with a zoom 4 fallback, on globes). Coverage requests run after selected and visible tiles, are not aborted while needed, and are evicted after stale tiles. Independent consumers pass their own coverage, which is unioned like selected and visible tiles. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…2DLayer Forward the `lodStrategy` tileset option from TileLayer, TerrainLayer and the proposals Tile2DLayer, and document it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
With coverage, the ancestor at `minZoom` is nearly always loaded, so `best-available` showed it instead of sharper loaded tiles. After zooming out by two levels, a pending tile showed the zoom 0 tile even though its loaded zoom 12 child was cached. Pending tiles now also show their loaded descendants on top of the coverage ancestor, as they would without it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
6f9841c to
d9b0105
Compare
|
This PR is too large for Bugbot to review. It changes 59,991 lines and 3,788,152 characters. Split the change into smaller pull requests to get a review. |
|
I opened #11286. It is an opt-in
This PR lowers the deficit during the flight. #11286 removes the wait after the stop. With heavy MVT tiles, the deficit is 72.3 on master, 39.9 with this PR and 36.2 with both. When this PR merges, I will merge master into #11286 and run the bench again. The bench and the merged branch are ready if you want to try the combination. |

Follow up of #10364. Part 1 of 2; pacing of hidden tiles follows in #11175.
During fast camera moves, high-zoom requests fill the queue and leave blank areas until they load. With the opt-in
lodStrategy: 'coverage', each view also requests the parent and a coarse ancestor of its selected tiles, which stay on screen until sharper tiles arrive.lod_strategy_comparison.mov
Change List
Tileset2D: opt-inlodStrategy; default'none'is unchangedTile2DView, unioned across consumersbest-available: show loaded descendants above coverage ancestorslodStrategyonTileLayer,TerrainLayerandTile2DLayerlod-strategy-demotest app: before/after comparisonVerified with the geo-layers unit tests and the terrain, MVT and bitmap render tests.