Hi guys,
My application typically uses high amount of memory, up to 1GB in some intensive cases. My machine has 12GB memory so no problem. In intensive cases, RadMap fails to respond after panning/zooming a couple of times. When profiled, the bottleneck is in Telerik.Windows.Controls.Map.TileSource.CreateBitmap(). I tried to used caching but not much improvement. Any advice?
This is some code for mockup
My application typically uses high amount of memory, up to 1GB in some intensive cases. My machine has 12GB memory so no problem. In intensive cases, RadMap fails to respond after panning/zooming a couple of times. When profiled, the bottleneck is in Telerik.Windows.Controls.Map.TileSource.CreateBitmap(). I tried to used caching but not much improvement. Any advice?
This is some code for mockup
<Window x:Class="RadMapPerf.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Title="MainWindow" Height="600" Width="800"> <Grid> <telerik:RadMap x:Name="RadMap" Center="38.8993487,-77.0145665" UseDefaultLayout="False" ZoomLevel="7"> <telerik:RadMap.Provider> <telerik:OpenStreetMapProvider IsTileCachingEnabled="True"/> </telerik:RadMap.Provider> </telerik:RadMap> </Grid></Window>public partial class MainWindow : Window { private readonly List<string> _memory = new List<string>(); public MainWindow() { InitializeComponent(); // fake memory usage for (var i = 0; i < 100000000; i++) _memory.Add("memory_usage"); } }