Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issues on iOS 14 #46

Closed
degtiarev opened this issue Mar 10, 2021 · 8 comments
Closed

Performance issues on iOS 14 #46

degtiarev opened this issue Mar 10, 2021 · 8 comments
Labels

Comments

@degtiarev
Copy link

degtiarev commented Mar 10, 2021

Hi. There are performance issues that appears when there's any Custom annotation in the current viewpoint on mapview. I guess these issues are critical for anyone who shows Custom annotations on mapview.

They are noticeable even in this simple example from mapbox doc.

Mapbox team fixed them in v6.2.0. These are two issues from mapbox/mapbox-gl-native-ios connected with them:

  1. On iOS 14 MGLAnnotationView slows down map significantly #350
  2. Fix map stuttering by switching render call to use setNeedsDisplay #411

This commit does not fix the issues I described.

@petr-pokorny-1
Copy link
Contributor

I did have a look into the issue and there doesn’t seem to be any related changes in the core library so hopefully the fix could be cherry picked from https://github.com/mapbox/mapbox-gl-native-ios/pull/411/files?file-filters%5B%5D=.h&file-filters%5B%5D=.md&file-filters%5B%5D=.mm

@juhieta
Copy link
Contributor

juhieta commented Mar 29, 2021

Hi @petr-pokorny-1 @degtiarev,

Yes it seems that relevant parts of https://github.com/mapbox/mapbox-gl-native-ios/pull/411/files can be applied and in my tests seems to fix the performance issue with annotations. Created PR #60

@roman-mykitchak
Copy link

roman-mykitchak commented Apr 27, 2021

Hi, Is it already cherry picked and resolved by Maplibre team?
I also have slow down(stuttering) on zoom while using MGLAnnotationView instead of MGLAnnotationImage.
Any progress?

@juhieta
Copy link
Contributor

juhieta commented Apr 27, 2021

Hi @roman-mykitchak, yes the cherry pick PR was merged to master, have you tried the performance with the latest version? However the PR seems to cause some assertion failure in metal-support -branch as noted here. So we'll need to have look what is causing that before closing this issue.

@ferologics
Copy link

@juhieta I am experiencing similar lag as @roman-mykitchak, has this change been released yet? AFAIK last official release was in March, and since then there's just this pre-release. Did anyone test using the Metal support yet?

@juhieta
Copy link
Contributor

juhieta commented May 20, 2021

Hi @ferologics, unfortunately it has not yet been released (the last iOS release was done before the #60 merge). There's this one assertion check fail that needs to be checked on the Metal branch. Btw, if MGLSymbolStyleLayer and MGLShapeSource work for your use case, they are better performing option in general.

@ferologics
Copy link

@juhieta thanks for the pointer, unfortunately we have to use custom annotation views. I suppose there won't be a release before Metal support is rolled out @petr-pokorny-1 ?

Could anyone instruct me on how to test with this change in a fork? As simple as pointing to master branch? Or do we need to build and point to a custom binary with the change?

@wipfli
Copy link
Contributor

wipfli commented Jul 1, 2022

I think there was a release since the last comment. Did you see performance improvements, @ferologics or @degtiarev?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants