Skip to content

[BUG] Poor performance after upgrading flutter to >= 3.29 #619

@dmisiek

Description

@dmisiek

Platforms

android

Version of flutter maplibre_gl

master (not really matter if its release or master - flutter version matters instead)

Bug Description

Recently, we finally decided to upgrade flutter & dart versions in our app from 3.27.4/3.6.2 to the latest stable (3.35.3/3.9.0). Unfortunately, we noticed poor performance for frequently updating map features on Android.

After a while of testing, we found out it happens only on our Samsung device (Samsung A55 5G). Testing app in the same way on Android emulator or physical Pixel (Google Pixel 6A) shows that map works well.

We don't use Impeller in our project (disabled within AndroidManifest), but we tested that it has no impact, if it's enabled or disabled.

Steps to Reproduce

Update map features quite dense on Samsung device, using flutter >= 3.29.

We do it using slider, that cause updating a couple of symbols, circle layer for active symbol and line below. After that we usually fit camera to the active symbol.

Expected Results

Frequent updates of map features should work smoothly, being close to performance on no Samsung devices or flutter < 3.29

Samsung A55 5G, flutter: 3.27.4 using --profile:

flutter.3.27.4.mov

Pixel emulator, flutter: 3.35.3 using --profile:

flutter.3.35.3.-.emulator.mov

Actual Results

Poor performance for frequently updating map features

Samsung A55 5G, flutter: 3.35.3 using --profile:

flutter.3.35.3.mov

Code Sample

// Paste your code here

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions