SfMaps Performance Issues | Xamarin.Forms

Hi Syncfusion,

Now that we are more comfortable working with Syncfusion tools, we are beginning to realize that SfMaps is almost always skipping frames when on-screen.

We have tried optimizing the shapefiles (down to 19KB, which is quite small), which does improve performance, but is still slow.

Could you provide any tips/guidance to improve/stabilize performance?

We currently run SfMaps version 15.3.0.33, implemented into Xamarin.Forms' ListView and CarouselView (not a carousel/list of ALL SfMaps, but ONE SfMap in a carousel/list of other elements).

Thanks in advance.

5 Replies

SG Sri Gayathri Gopalakrishnan Syncfusion Team November 27, 2017 12:55 PM UTC

 
Hi Geoffrey,

Query: SfMaps Performance Improvement

We were unable to reproduce the performance issue. We have prepared simple sample for testing by adding SfMaps in Carousel View. Please find the sample from the below link,

http://www.syncfusion.com/downloads/support/forum/134720/MAPSSA~11034698799.ZIP  

Since we are not aware of the exact scenario issue reproduced, we would like to know the following details to provide the solution sooner,

-Modify the existing sample to replicate your scenario

-Or Provide your sample with replication steps.

Please let us know in case of any concern

Regards,
Sri Gayathri. G



GC Geoffrey Chen November 29, 2017 05:03 PM UTC

Hello Sri,

Here is a link to a simple project reproducing the issue: https://drive.google.com/open?id=1e1i3HJl9lbogxSPBgoLsY3dJ9O_uTCAE (I have been mainly testing on Android, with a Samsung Galaxy S6).

I've implemented an ItemTemplateSelector in the SfList, which chooses to display either an SfMap or Xamarin.Forms label, based on the ItemsSource.

Notice that scrolling skips many frames when the SfMaps cell is rendered in view. I've already simplified the map shape file down to 19KB.

How else can I further optimize to smooth scrolling? It also slows down any other UI, which makes for a jittery experience (ex. using MasterDetail menu). I also tested placing SfMaps in Xamarin.Forms' ListView, as well as their CarouselView (not SfCarousel), which is also impacted by the slowdowns.

Best regards,
Geoffrey Chen



SG Sri Gayathri Gopalakrishnan Syncfusion Team December 1, 2017 03:08 PM UTC

Hi Geoffrey,

Query: SfMaps Performance Improvement

We have analyzed your sample, scrolling skips frames due to the time delay in reading the shapefile. Initially when Maps loaded shape file has been read, and hence there is no delay. When scrolling down to up in ListView, existing instance of maps become null and created again which leads to time delay in reading the shape file. Currently we are analyzing about time delay in reading shape file and facing difficulty to overcome. We will improve the performance of the time taken while reading and include in our upcoming volume 4 sp1 release which is expected to be released out by the end of December 2017.

Please let us know in case of any concern

Regards,
Sri Gayathri. G


AN Antonin February 27, 2018 10:01 AM UTC

Hello,

We are using the SfMaps component (version 16.1.0.24) in a Xamarin Forms app. On Android, when we just add a SfMap with a light shapefile (7 Ko),  the app freezes for approximately one second. In the debugger console, we have the following message :

"I/monodroid-gc(12368): 46080 outstanding GREFs. Performing a full GC!"

The Garbage Collector need to collect many objects that causes a freeze. This bug is only on Android, not on iOS.

Have you any idea to workaround this bug ? (we are trying to inherit SfMapsRenderer for example but we don't know where exactly the problem is).

Thank you.


SG Sri Gayathri Gopalakrishnan Syncfusion Team March 1, 2018 01:10 PM UTC

Hi Antonin,

Query: app freezes for approximately one second.

We have analyzed your query and we were able to reproduce memory issue after loading the shapes file as your reported scenario at our end. We will improve the performance of Maps and the fix will include in our 2018 upcoming volume 1 sp1 release which is expected to be rolled out by the end of March 2018.

We appreciate your patience until then.

Regards,
Sri Gayathri. G


Loader.
Up arrow icon