Select to view content in your preferred language

High CPU usage after changing to a base map with a different spatial reference

488
1
06-15-2022 09:37 AM
MarkWoodward2
New Contributor

I’m seeing high CPU usage in my application after changing the base map to one with a different spatial reference.  I believe the high CPU usage is related to calling GeometryEngine.DensifyGeodetic for displaying lines on the map but cannot be 100% certain of this.  Profiling it just shows high CPU usage from 4 runtimecore tasks and it’s not possible to determine what is causing them.

 

The map has a number of graphic layers, one of which displays a series of lines on the map.

 

When changing the base map I do the following,

 

  • Create and load a new WmtsLayer that points to map server for the new base map
  • Create a new map in the MapView with the new spatial reference
  • Add the WmtsLayer as a base map to the MapView
  • Reproject the graphic layers to use the new spatial reference

 

The high CPU usage does seem to depend on the spatial reference, with some maps being fine and some having the high CPU usage.

 

I’m using .Net Arcgis runtime 100.14.0 with .NET 6.

Thanks,

Mark

0 Kudos
1 Reply
MichaelBranscomb
Esri Frequent Contributor

Do you have a repro app or code that demonstrates the issue?

0 Kudos