# Memory Usage

**URL:** <https://community.thinkgeo.com/t/memory-usage/573>\
**Category:** WinForms\
**Created:** [July 29, 2009, 11:06am UTC](https://community.thinkgeo.com/t/memory-usage/573 "2009-07-29T11:06:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![John](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a3d4f5/32.png) [@John](https://community.thinkgeo.com/u/John)\
**Post date:** [July 29, 2009, 11:06am UTC](https://community.thinkgeo.com/t/memory-usage/573/1 "2009-07-29T11:06:57Z")

</div>

We&nbsp;are&nbsp;getting&nbsp;to&nbsp;the&nbsp;point&nbsp;in&nbsp;our&nbsp;development&nbsp;that&nbsp;we&nbsp;are&nbsp;looking&nbsp;at&nbsp;performance&nbsp;of&nbsp;our&nbsp;map&nbsp;rendering.&nbsp;I&nbsp;have&nbsp;been&nbsp;watching&nbsp;the&nbsp;memory&nbsp;usage&nbsp;as&nbsp;many&nbsp;of&nbsp;our&nbsp;customers&nbsp;are&nbsp;using&nbsp;rugged&nbsp;computers&nbsp;in&nbsp;vehicles.&nbsp;Rugged&nbsp;hardware&nbsp;tends&nbsp;to&nbsp;have&nbsp;slower&nbsp;processors&nbsp;and&nbsp;less&nbsp;memory.

When&nbsp;running&nbsp;our&nbsp;map&nbsp;application&nbsp;(using&nbsp;MS&nbsp;desktop&nbsp;released&nbsp;the&nbsp;other&nbsp;day,&nbsp;map&nbsp;window&nbsp;size&nbsp;of&nbsp;995x550)&nbsp;I&nbsp;noticed&nbsp;the&nbsp;memory&nbsp;usage&nbsp;climbs&nbsp;while&nbsp;panning/zooming&nbsp;to&nbsp;about&nbsp;300MBs.&nbsp;I&nbsp;assume&nbsp;this&nbsp;is&nbsp;due&nbsp;to&nbsp;feature&nbsp;caching&nbsp;(we&nbsp;are&nbsp;not&nbsp;explicitly&nbsp;specifying&nbsp;a&nbsp;cache).&nbsp;As&nbsp;I&nbsp;navigate&nbsp;the&nbsp;memory&nbsp;usage&nbsp;goes&nbsp;over&nbsp;300MBs,&nbsp;but&nbsp;after&nbsp;I&nbsp;complete&nbsp;whatever&nbsp;I&nbsp;was&nbsp;doing,&nbsp;the&nbsp;memory&nbsp;drops&nbsp;back&nbsp;down&nbsp;to&nbsp;something&nbsp;like&nbsp;299.

If&nbsp;I&nbsp;full&nbsp;screen&nbsp;the&nbsp;map&nbsp;app&nbsp;(1260x830&nbsp;map&nbsp;image),&nbsp;then&nbsp;the&nbsp;max&nbsp;memory&nbsp;is&nbsp;around&nbsp;400MB.&nbsp;After&nbsp;each&nbsp;operation&nbsp;it&nbsp;drops&nbsp;back&nbsp;down&nbsp;to&nbsp;around&nbsp;399.

Do&nbsp;we&nbsp;have&nbsp;any&nbsp;control&nbsp;over&nbsp;the&nbsp;memory&nbsp;usage?&nbsp;If&nbsp;we&nbsp;specify&nbsp;a&nbsp;geocache,&nbsp;does&nbsp;MS&nbsp;desktop&nbsp;still&nbsp;cache&nbsp;the&nbsp;other&nbsp;layers?

&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [July 30, 2009, 12:08am UTC](https://community.thinkgeo.com/t/memory-usage/573/2 "2009-07-30T00:08:52Z")

</div>

John,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;am&nbsp;a&nbsp;bit&nbsp;confused&nbsp;about&nbsp;your&nbsp;description.&nbsp;The&nbsp;memory&nbsp;will&nbsp;drops&nbsp;back&nbsp;from&nbsp;300&nbsp;MBs&nbsp;to&nbsp;299&nbsp;Mb&nbsp;s?&nbsp;and&nbsp;from&nbsp;400&nbsp;MBs&nbsp;to&nbsp;399&nbsp;MBs?&nbsp;I&nbsp;did&nbsp;not&nbsp;see&nbsp;very&nbsp;sharp&nbsp;drop.&nbsp;  
&nbsp;&nbsp;  
&nbsp;About&nbsp;the&nbsp;cache,&nbsp;we&nbsp;will&nbsp;keep&nbsp;tiles&nbsp;in&nbsp;memory,&nbsp;and&nbsp;it&nbsp;will&nbsp;take&nbsp;70&nbsp;MB&nbsp;memory&nbsp;for&nbsp;each&nbsp;overlay.&nbsp;How&nbsp;many&nbsp;overlays&nbsp;are&nbsp;you&nbsp;using&nbsp;against?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Currently,&nbsp;we&nbsp;did&nbsp;not&nbsp;expose&nbsp;the&nbsp;automatic&nbsp;local&nbsp;cache&nbsp;system&nbsp;out&nbsp;so&nbsp;you&nbsp;cannot&nbsp;change&nbsp;its&nbsp;behavior.&nbsp;We&nbsp;are&nbsp;considering&nbsp;changing&nbsp;it.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Let&nbsp;me&nbsp;know&nbsp;if&nbsp;you&nbsp;have&nbsp;any&nbsp;more&nbsp;questions.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![John](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a3d4f5/32.png) [@John](https://community.thinkgeo.com/u/John)\
**Post date:** [July 30, 2009, 12:39pm UTC](https://community.thinkgeo.com/t/memory-usage/573/3 "2009-07-30T12:39:24Z")

</div>

Hopefully&nbsp;I&nbsp;can&nbsp;explain&nbsp;this&nbsp;so&nbsp;it&nbsp;makes&nbsp;sense.&nbsp;I&nbsp;think&nbsp;the&nbsp;MS&nbsp;is&nbsp;working&nbsp;correctly&nbsp;in&nbsp;regards&nbsp;to&nbsp;memory&nbsp;usage,&nbsp;I&nbsp;just&nbsp;wanted&nbsp;to&nbsp;know&nbsp;if&nbsp;we&nbsp;have&nbsp;control&nbsp;over&nbsp;how&nbsp;much&nbsp;memory&nbsp;to&nbsp;use.&nbsp;  
&nbsp;&nbsp;  
&nbsp;OK,&nbsp;when&nbsp;running&nbsp;a&nbsp;mapping&nbsp;application&nbsp;with&nbsp;MS,&nbsp;memory&nbsp;usage&nbsp;is&nbsp;low&nbsp;(50MBs&nbsp;or&nbsp;so).&nbsp;After&nbsp;working&nbsp;with&nbsp;the&nbsp;appliccation&nbsp;(panning&nbsp;and&nbsp;zooming)&nbsp;the&nbsp;memory&nbsp;usage&nbsp;starts&nbsp;to&nbsp;climb.&nbsp;This&nbsp;is&nbsp;expected&nbsp;since&nbsp;more&nbsp;data&nbsp;is&nbsp;being&nbsp;cached&nbsp;(default&nbsp;cache).&nbsp;Once&nbsp;I&nbsp;reach&nbsp;the&nbsp;300MB&nbsp;mark&nbsp;the&nbsp;memory&nbsp;usage&nbsp;may&nbsp;spike&nbsp;up&nbsp;while&nbsp;I’m&nbsp;doing&nbsp;something,&nbsp;but&nbsp;after&nbsp;the&nbsp;operation&nbsp;is&nbsp;done,&nbsp;the&nbsp;memory&nbsp;usage&nbsp;drops&nbsp;down&nbsp;to&nbsp;AROUND&nbsp;300MB&nbsp;(typically&nbsp;just&nbsp;under&nbsp;300,&nbsp;like&nbsp;297-299&nbsp;range).&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;I&nbsp;full&nbsp;screen&nbsp;the&nbsp;application,&nbsp;the&nbsp;memory&nbsp;usage&nbsp;will&nbsp;climb&nbsp;to&nbsp;the&nbsp;400MB&nbsp;mark&nbsp;and&nbsp;remain&nbsp;there.&nbsp;Spiking&nbsp;over&nbsp;during&nbsp;operations,&nbsp;but&nbsp;fall&nbsp;AROUND&nbsp;the&nbsp;400MB&nbsp;mark.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Therefore&nbsp;I&nbsp;wanted&nbsp;to&nbsp;know&nbsp;if&nbsp;we&nbsp;had&nbsp;any&nbsp;control&nbsp;over&nbsp;this&nbsp;since&nbsp;we&nbsp;may&nbsp;have&nbsp;customers&nbsp;with&nbsp;512MB&nbsp;of&nbsp;memory.&nbsp;400MB&nbsp;would&nbsp;create&nbsp;a&nbsp;problem&nbsp;…unless&nbsp;they&nbsp;didn’t&nbsp;need&nbsp;any&nbsp;memory&nbsp;for&nbsp;Windows&nbsp;(this&nbsp;is&nbsp;a&nbsp;joke&nbsp;of&nbsp;course).&nbsp;  
&nbsp;&nbsp;  
&nbsp;The&nbsp;performance&nbsp;of&nbsp;our&nbsp;current&nbsp;beta&nbsp;test&nbsp;is&nbsp;very&nbsp;slow&nbsp;with&nbsp;about&nbsp;400&nbsp;MBs&nbsp;of&nbsp;shape&nbsp;data.&nbsp;A&nbsp;building&nbsp;polygon&nbsp;layer&nbsp;for&nbsp;Lancaster&nbsp;County,&nbsp;PA&nbsp;is&nbsp;200&nbsp;MBs&nbsp;(including&nbsp;your&nbsp;index&nbsp;files)&nbsp;with&nbsp;about&nbsp;350,000&nbsp;polygons.&nbsp;It&nbsp;is&nbsp;very&nbsp;SLOW&nbsp;to&nbsp;render&nbsp;this&nbsp;data.&nbsp;  
&nbsp;&nbsp;  
&nbsp;In&nbsp;comparison,&nbsp;we&nbsp;have&nbsp;been&nbsp;testing&nbsp;TatukGIS’s&nbsp;DK&nbsp;via&nbsp;their&nbsp;trail&nbsp;of&nbsp;the&nbsp;Editor&nbsp;software&nbsp;(we&nbsp;do&nbsp;have&nbsp;the&nbsp;DK&nbsp;8.x&nbsp;for&nbsp;ActiveX).&nbsp;The&nbsp;editor&nbsp;renders&nbsp;this&nbsp;data&nbsp;very&nbsp;fast&nbsp;and&nbsp;only&nbsp;uses&nbsp;60MB&nbsp;of&nbsp;memory.&nbsp;I&nbsp;plan&nbsp;to&nbsp;create&nbsp;some&nbsp;videos&nbsp;to&nbsp;demonstrate&nbsp;the&nbsp;speed&nbsp;differences.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;We&nbsp;hope&nbsp;ThinkGeo&nbsp;can&nbsp;get&nbsp;the&nbsp;performance&nbsp;up&nbsp;of&nbsp;the&nbsp;MS&nbsp;or&nbsp;we&nbsp;will&nbsp;have&nbsp;to&nbsp;use&nbsp;TatukGIS.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [July 30, 2009, 11:57pm UTC](https://community.thinkgeo.com/t/memory-usage/573/4 "2009-07-30T23:57:00Z")

</div>

John,

Thanks&nbsp;for&nbsp;clearing&nbsp;up&nbsp;the&nbsp;questions!

1)&nbsp;In&nbsp;the&nbsp;latest&nbsp;public&nbsp;release,&nbsp;you&nbsp;have&nbsp;no&nbsp;way&nbsp;to&nbsp;control&nbsp;the&nbsp;size&nbsp;of&nbsp;memory&nbsp;usage&nbsp;for&nbsp;cache&nbsp;system&nbsp;unless&nbsp;you&nbsp;disable&nbsp;it.

We&nbsp;are&nbsp;now&nbsp;on&nbsp;the&nbsp;way&nbsp;to&nbsp;change&nbsp;this,&nbsp;and&nbsp;I&nbsp;think&nbsp;in&nbsp;later&nbsp;release,&nbsp;you&nbsp;will&nbsp;have&nbsp;full&nbsp;control&nbsp;about&nbsp;it.

2)&nbsp;About&nbsp;the&nbsp;performance&nbsp;of&nbsp;loading&nbsp;polygon&nbsp;shape&nbsp;file,&nbsp;I&nbsp;want&nbsp;to&nbsp;make&nbsp;sure&nbsp;how&nbsp;slow&nbsp;it&nbsp;is&nbsp;to&nbsp;render&nbsp;the&nbsp;map?&nbsp;And&nbsp;if&nbsp;possible,&nbsp;you&nbsp;can&nbsp;contact&nbsp;our&nbsp;support&nbsp;to&nbsp;upload&nbsp;the&nbsp;shape&nbsp;file&nbsp;to&nbsp;us,&nbsp;we&nbsp;will&nbsp;figure&nbsp;out&nbsp;why&nbsp;it&nbsp;is&nbsp;so&nbsp;slow&nbsp;because&nbsp;it&nbsp;is&nbsp;so&nbsp;unexpected.

We&nbsp;have&nbsp;another&nbsp;product&nbsp;“WorldMapKit”&nbsp;which&nbsp;will&nbsp;render&nbsp;data&nbsp;over&nbsp;10&nbsp;GB&nbsp;while&nbsp;its&nbsp;performance&nbsp;is&nbsp;still&nbsp;acceptable.

Let&nbsp;me&nbsp;know&nbsp;if&nbsp;you&nbsp;have&nbsp;any&nbsp;more&nbsp;questions.

Thanks.

Yale  
  
&nbsp;

---

<div class="post-metadata">

**Author:** ![John](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a3d4f5/32.png) [@John](https://community.thinkgeo.com/u/John)\
**Post date:** [July 31, 2009, 3:49pm UTC](https://community.thinkgeo.com/t/memory-usage/573/5 "2009-07-31T15:49:40Z")

</div>

Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Here&nbsp;is&nbsp;a&nbsp;link&nbsp;to&nbsp;a&nbsp;video&nbsp;showing&nbsp;the&nbsp;performance&nbsp;of&nbsp;the&nbsp;map&nbsp;rendering:&nbsp;  
&nbsp;[onscenexplorer.com/videos/thinkgeo\_map\_display.wmv](http://onscenexplorer.com/videos/thinkgeo_map_display.wmv)&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;will&nbsp;contact&nbsp;support&nbsp;about&nbsp;uploading&nbsp;the&nbsp;data.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;-John

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [August 2, 2009, 8:14pm UTC](https://community.thinkgeo.com/t/memory-usage/573/6 "2009-08-02T20:14:32Z")

</div>

John,

Thanks&nbsp;for&nbsp;your&nbsp;posts&nbsp;and&nbsp;video,&nbsp;it&nbsp;is&nbsp;amazed&nbsp;you&nbsp;did&nbsp;so&nbsp;great&nbsp;rendering&nbsp;maps!  
&nbsp;  
I&nbsp;notice&nbsp;2&nbsp;things&nbsp;about&nbsp;the&nbsp;rendering&nbsp;performance:  
1)&nbsp;The&nbsp;longest&nbsp;time&nbsp;to&nbsp;render&nbsp;one&nbsp;operation&nbsp;will&nbsp;not&nbsp;exceed&nbsp;15&nbsp;seconds,&nbsp;and&nbsp;most&nbsp;of&nbsp;the&nbsp;time&nbsp;will&nbsp;be&nbsp;within&nbsp;5&nbsp;seconds.&nbsp;I&nbsp; **DONOT** &nbsp;think&nbsp;this&nbsp;performance&nbsp;is&nbsp; **VERY** &nbsp;slow&nbsp;because&nbsp;every&nbsp;time&nbsp;we&nbsp;draw,&nbsp;it&nbsp;also&nbsp;will&nbsp;take&nbsp;some&nbsp;time&nbsp;to&nbsp;save&nbsp;tiles&nbsp;to&nbsp;disk&nbsp;or&nbsp;memory  
&nbsp;  
2)&nbsp;It&nbsp;seems&nbsp;the&nbsp;performance&nbsp;will&nbsp;be&nbsp;slow&nbsp;only&nbsp;when&nbsp;the&nbsp;many&nbsp;POLYGON&nbsp;features&nbsp;will&nbsp;be&nbsp;shown,&nbsp;so&nbsp;what&nbsp;you&nbsp;are&nbsp;trying&nbsp;to&nbsp;send&nbsp;us&nbsp;is&nbsp;the&nbsp;POLYGON&nbsp;data?  
&nbsp;  
And&nbsp;for&nbsp;better&nbsp;communication&nbsp;and&nbsp;comparison&nbsp;with&nbsp;TatukGIS,&nbsp;can&nbsp;you&nbsp;give&nbsp;me&nbsp;one&nbsp;extent&nbsp;and&nbsp;what&nbsp;time&nbsp;in&nbsp;rendering&nbsp;in&nbsp;Tatuk&nbsp;editor&nbsp;for&nbsp;this&nbsp;given&nbsp;specified&nbsp;extent?&nbsp;Then&nbsp;we&nbsp;can&nbsp;take&nbsp;a&nbsp;very&nbsp;detailed&nbsp;comparison&nbsp;and&nbsp;figure&nbsp;out&nbsp;why&nbsp;it&nbsp;is&nbsp;slow&nbsp;somehow.  
&nbsp;  
Thanks&nbsp;again!  
&nbsp;  
Let&nbsp;me&nbsp;know&nbsp;if&nbsp;you&nbsp;have&nbsp;any&nbsp;more&nbsp;questions.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![John](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a3d4f5/32.png) [@John](https://community.thinkgeo.com/u/John)\
**Post date:** [August 3, 2009, 3:45pm UTC](https://community.thinkgeo.com/t/memory-usage/573/7 "2009-08-03T15:45:32Z")

</div>

Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;uploaded&nbsp;all&nbsp;the&nbsp;data&nbsp;you&nbsp;see&nbsp;in&nbsp;the&nbsp;video.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;do&nbsp;think&nbsp;the&nbsp;performance&nbsp;is&nbsp;very&nbsp;slow.&nbsp;When&nbsp;compared&nbsp;to&nbsp;MapObjects,&nbsp;ArcMap&nbsp;9.3,&nbsp;or&nbsp;Tatuk,&nbsp;it&nbsp;is&nbsp;painfully&nbsp;slow.&nbsp;Our&nbsp;application&nbsp;is&nbsp;for&nbsp;in-vehicle&nbsp;use&nbsp;by&nbsp;emergency&nbsp;responders.&nbsp;When&nbsp;using&nbsp;a&nbsp;GPS&nbsp;receiver&nbsp;the&nbsp;map&nbsp;needs&nbsp;to&nbsp;rotate&nbsp;and&nbsp;refresh&nbsp;rather&nbsp;quickly.&nbsp;I’m&nbsp;concerned&nbsp;that&nbsp;ThinkGeo&nbsp;might&nbsp;not&nbsp;be&nbsp;the&nbsp;platform&nbsp;for&nbsp;our&nbsp;application.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Along&nbsp;with&nbsp;the&nbsp;video&nbsp;of&nbsp;our&nbsp;application&nbsp;with&nbsp;ThinkGeo…included&nbsp;is&nbsp;a&nbsp;video&nbsp;with&nbsp;Tatuk&nbsp;Editor&nbsp;built&nbsp;in&nbsp;the&nbsp;beta&nbsp;9&nbsp;DK.&nbsp;I&nbsp;think&nbsp;you&nbsp;will&nbsp;agree&nbsp;the&nbsp;speed&nbsp;different&nbsp;is&nbsp;substantial.&nbsp;  
&nbsp;&nbsp;  
&nbsp;[onscenexplorer.com/videos/thinkgeo\_map\_display.wmv](http://onscenexplorer.com/videos/thinkgeo_map_display.wmv)&nbsp;&nbsp;14mbs&nbsp;  
&nbsp;[onscenexplorer.com/videos/tatuk\_map\_display.wmv](http://onscenexplorer.com/videos/tatuk_map_display.wmv)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6mbs&nbsp;  
&nbsp;&nbsp;  
&nbsp;Both&nbsp;applications&nbsp;are&nbsp;using&nbsp;the&nbsp;exact&nbsp;same&nbsp;shapefiles&nbsp;in&nbsp;this&nbsp;demo&nbsp;(which&nbsp;is&nbsp;what&nbsp;I&nbsp;sent&nbsp;you,&nbsp;along&nbsp;with&nbsp;the&nbsp;Tatuk&nbsp;Editor&nbsp;file&nbsp;(so&nbsp;you&nbsp;can&nbsp;try&nbsp;it&nbsp;with&nbsp;trial&nbsp;editor).&nbsp;  
&nbsp;&nbsp;  
&nbsp;John

---

<div class="post-metadata">

**Author:** ![David](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@David](https://community.thinkgeo.com/u/David)\
**Post date:** [August 3, 2009, 3:45pm UTC](https://community.thinkgeo.com/t/memory-usage/573/8 "2009-08-03T15:45:46Z")

</div>

John,  
  
  
  
&nbsp;&nbsp;In&nbsp;the&nbsp;next&nbsp;release&nbsp;that&nbsp;is&nbsp;in&nbsp;about&nbsp;a&nbsp;week&nbsp;so&nbsp;we&nbsp;are&nbsp;going&nbsp;to&nbsp;give&nbsp;you&nbsp;full&nbsp;control&nbsp;over&nbsp;the&nbsp;internal&nbsp;caching.&nbsp;&nbsp;We&nbsp;are&nbsp;exposing&nbsp;it&nbsp;on&nbsp;the&nbsp;overlays&nbsp;themselves.&nbsp;&nbsp;You&nbsp;will&nbsp;be&nbsp;able&nbsp;to&nbsp;control&nbsp;how&nbsp;much&nbsp;memory&nbsp;you&nbsp;are&nbsp;using.&nbsp;&nbsp;Thank&nbsp;you&nbsp;so&nbsp;much&nbsp;for&nbsp;the&nbsp;video&nbsp;it&nbsp;helps&nbsp;to&nbsp;see&nbsp;what&nbsp;is&nbsp;going&nbsp;on.&nbsp;&nbsp;On&nbsp;the&nbsp;performance&nbsp;side&nbsp;of&nbsp;things&nbsp;I&nbsp;would&nbsp;be&nbsp;interested&nbsp;to&nbsp;see&nbsp;the&nbsp;rendering&nbsp;time&nbsp;by&nbsp;layer&nbsp;and&nbsp;overlay.&nbsp;&nbsp;I&nbsp;have&nbsp;attach&nbsp;some&nbsp;code&nbsp;I&nbsp;whipped&nbsp;up&nbsp;to&nbsp;see&nbsp;where&nbsp;the&nbsp;time&nbsp;is&nbsp;being&nbsp;used&nbsp;at.&nbsp;&nbsp;After&nbsp;we&nbsp;see&nbsp;what&nbsp;layers&nbsp;and&nbsp;overlays&nbsp;are&nbsp;using&nbsp;up&nbsp;the&nbsp;time&nbsp;we&nbsp;can&nbsp;focus&nbsp;in&nbsp;on&nbsp;some&nbsp;suggestions.&nbsp;&nbsp;In&nbsp;the&nbsp;next&nbsp;release&nbsp;when&nbsp;we&nbsp;move&nbsp;the&nbsp;caching&nbsp;into&nbsp;the&nbsp;overlays&nbsp;we&nbsp;will&nbsp;also&nbsp;get&nbsp;a&nbsp;better&nbsp;idea&nbsp;on&nbsp;the&nbsp;timing&nbsp;as&nbsp;the&nbsp;Overlay.Drawing&nbsp;time&nbsp;will&nbsp;reflect&nbsp;the&nbsp;caching&nbsp;as&nbsp;now&nbsp;we&nbsp;can't&nbsp;see&nbsp;if&nbsp;that&nbsp;is&nbsp;the&nbsp;slowdown.&nbsp;&nbsp;  
  
  
  
David

&nbsp;

`        internal static string GetMapRenderingTimes(WinformsMap map)        {            StringBuilder times = new StringBuilder();            times.AppendLine("Standard Overlays");            foreach (Overlay overlay in map.Overlays)            {                                 times.AppendLine("Overlay: " + overlay.Name + " Time: " + overlay.DrawingTime.TotalSeconds);                if (overlay is LayerOverlay)                {                    foreach (Layer layer in ((LayerOverlay)overlay).Layers)                    {                        times.AppendLine("Layer: " + layer.Name + " Time: " + layer.DrawingTime.TotalSeconds);                    }                }            }                        times.AppendLine("Adornment Overlay Time: " + map.AdornmentOverlay.DrawingTime.TotalSeconds);            foreach (Layer layer in map.AdornmentOverlay.Layers)            {                times.AppendLine("Adornment Layer: " + layer.Name + " Time: " + layer.DrawingTime.TotalSeconds);            }                        foreach (Overlay overlay in map.InteractiveOverlays)            {                times.AppendLine("Interactive Overlay: " + overlay.Name + " Time: " + overlay.DrawingTime.TotalSeconds);                if (overlay is LayerOverlay)                {                    foreach (Layer layer in ((LayerOverlay)overlay).Layers)                    {                        times.AppendLine("Interactive Layer: " + layer.Name + " Time: " + layer.DrawingTime.TotalSeconds);                    }                }            }            times.AppendLine("Edit Interactive Overlay Time: " + map.EditOverlay.DrawingTime.TotalSeconds);            times.AppendLine("Edit Interactive Overlay Drag Control Points  Time: " + map.EditOverlay.DragControlPointsLayer.DrawingTime.TotalSeconds);            times.AppendLine("Edit Interactive Overlay Edit Shapes Time: " + map.EditOverlay.EditShapesLayer.DrawingTime.TotalSeconds);            times.AppendLine("Edit Interactive Overlay Existing Control Points Time: " + map.EditOverlay.ExistingControlPointsLayer.DrawingTime.TotalSeconds);            times.AppendLine("Edit Interactive Overlay Resize Control Points Time: " + map.EditOverlay.ResizeControlPointsLayer.DrawingTime.TotalSeconds);            times.AppendLine("Edit Interactive Overlay Rotate Control Points Time: " + map.EditOverlay.RotateControlPointsLayer.DrawingTime.TotalSeconds);            times.AppendLine("Track Interactive Overlay Time: " + map.TrackOverlay.DrawingTime.TotalSeconds);            times.AppendLine("Track Interactive Overlay Track Shapes Time: " + map.TrackOverlay.TrackShapeLayer.DrawingTime.TotalSeconds);                        return times.ToString();        } `
