Skip to content

Support bulk Circles with raster tiles - #35

Merged
wf9a5m75 merged 2 commits into
developfrom
feat/circles-bulk-cache
Nov 11, 2026
Merged

wf9a5m75 merged 2 commits into
developfrom
feat/circles-bulk-cache

Conversation

@wf9a5m75

Copy link
Copy Markdown
Contributor

Part of the bulk Circles rollout for Android, iOS, and React Web. This component is reviewed together with its SDK integration PR.

The rollout registers collections of circle states, routes eligible large collections through the shared raster tile layer, and keeps original circle states for taps and lifecycle callbacks. Large drawing models are stored in a platform cache and carrier filters reuse existing geometry where possible.

Please review and merge the relevant core and bindings changes before advancing the parent SDK's submodule pins. The parent PR records the integrated test results and links the full dependency set.

…f main

A tap on a map with tiled circles read every tiled CircleState: 1.2 s per
tap at the nationwide example's 723,800 circles (Release, simulator), paid on
the main thread by every tap the higher overlays did not take. The tiles
already index the circles' boxes, so the tap now asks that index for the few
circles near it (plus in-place changes not yet redrawn) and decides on their
states exactly as before: 0.1 ms. On an iPad Pro the tap-to-bubble time went
from 2.2 s to 0.7 s.

ShapeTileSet.flush() redrew the changed shapes on the main thread, and past
2,048 in-place changes rewrote the whole circle file there (150 ms). It now
runs on its own serial queue; onTemplateChanged still reaches the main thread.

nativeEntities() is for renderers only: it is @_spi(MapConductorDriver) on
CircleManager instead of a new requirement of the public CircleManagerProtocol.
The API baseline records CircleTilingOptions' default of 2001 (it said 2000).
@wf9a5m75
wf9a5m75 marked this pull request as ready for review November 11, 2026 07:17
@wf9a5m75
wf9a5m75 merged commit 1d5413d into develop Nov 11, 2026
2 checks passed
@wf9a5m75
wf9a5m75 deleted the feat/circles-bulk-cache branch November 11, 2026 07:17
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