-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Platform: Linux (deploying production releases on Windows 10/111 devices)
Device: Dell Precision 7560 - Nvidia T1200 - Intel i7-11800H
Marker count is 973 with a majority of it being polywidget raster images and the rest being flutter icons or text.
Polyline count is 1886 (many simple polylines with on average at most 2 points each),
Tile layer is using rasterized MapBox.
With almost 1000 markers/PolyWidgets, there is a significant performance hit (averaging 20FPS) without a self-implemented culling solution:

With a culling solution applied, performance is improved significantly:

The pseudocode culling solution is shown below. Essentially it only passes through widgets to render that are present within flutter_map camera bounds.
PolyWidgetLayer(
polyWidgets: elements.where((e) => e.center.latLng.isInsideBoundsOf(MapCamera.of(context).visibleBounds)),
)Zambeel-Ltd and Dabao-Su
Metadata
Metadata
Assignees
Labels
No labels