Skip to content

Marker calulations are heavy #958

@TheLastGimbus

Description

@TheLastGimbus

Hi there!
For quite a time, I'm reaserching performance of flutter_map when throwing a lot of markers at it

Recently, I created a library for drawing markers on Canvas instead of widgets, and it's performing pretty well. You can check it out at dev branch (tho it uses flutter_map fork for now 😬 ) https://github.com/KanarekApp/flutter_map_fast_markers/tree/dev

But it turns out, that, even if you don't draw makers at all, the calulations that translate LatLng to X Y position on the screen are taking me to <30 fps @5k markers (when not drawing them at all!)

I copy-pasted the calulations from original markers, but I can modify them - however, I have no idea how.

Does anyone have an idea how they could be optimized?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue reports broken functionality or another error

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions