GMSMapView Energy Impact

I am currently using GMSMapView in my fast application, and the energy impact is never reduced (like CPU usage or memory usage).

Has anyone already encountered this problem?

Using Google Maps 2.0.1

Xcode Monitoring

Energy impact

+6
source share
3 answers

I found the answer myself. It is associated with a property GMSMarker.tracksViewChanges.

Turning it in falsefor all added tokens freed the processor.

+4
source

I found that Google maps consume a lot of memory. Changing tracks ViewChanges worked for me as well.

, , , - .

GMSMapView

  • mapViewDidStartTileRendering(_mapView: GMSMapView)
  • mapViewDidFinishTileRendering(_ mapView: GMSMapView)

, , .

0

Make falsethe property of the GMSMarker() tracksViewChanges& objecttracksInfoWindowChanges

let placeMarker = GMSMarker()
placeMarker.tracksViewChanges = false
placeMarker.tracksInfoWindowChanges = false

This will knock down the indicator of the impact energy of the watch.

0
source

Source: https://habr.com/ru/post/1652888/


All Articles