# To improve rendering speed

**URL:** <https://community.thinkgeo.com/t/to-improve-rendering-speed/2409>\
**Category:** WinForms\
**Created:** [June 12, 2014, 4:27am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409 "2014-06-12T04:27:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [June 12, 2014, 4:27am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/1 "2014-06-12T04:27:11Z")

</div>

Hi,  
  
  
  
&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;want&nbsp;to&nbsp;know&nbsp;that&nbsp;which&nbsp;parameters&nbsp;needs&nbsp;to&nbsp;taken&nbsp;into&nbsp;account&nbsp;to&nbsp;improve&nbsp;rendering&nbsp;speed&nbsp;at&nbsp;the&nbsp;time&nbsp;of&nbsp;zoomin,&nbsp;zoomout.  
  
  
  
Thanks,  
  
Goral

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [June 13, 2014, 1:11am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/2 "2014-06-13T01:11:14Z")

</div>

Hi&nbsp;Goral,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;it&nbsp;depends&nbsp;on&nbsp;the&nbsp;concrete&nbsp;case.&nbsp;In&nbsp;general,&nbsp;the&nbsp;rendering&nbsp;speed&nbsp;is&nbsp;accept&nbsp;unless&nbsp;you&nbsp;are&nbsp;using&nbsp;some&nbsp;network&nbsp;layers&nbsp;like&nbsp;worldmapkit,&nbsp;google&nbsp;layer&nbsp;etc&nbsp;which&nbsp;will&nbsp;request&nbsp;the&nbsp;images&nbsp;from&nbsp;network.&nbsp;Or&nbsp;there&nbsp;are&nbsp;a&nbsp;large&nbsp;date&nbsp;local&nbsp;shape&nbsp;file&nbsp;need&nbsp;to&nbsp;render.&nbsp;&nbsp;  
&nbsp;I&nbsp;am&nbsp;wondering&nbsp;if&nbsp;you&nbsp;are&nbsp;facing&nbsp;any&nbsp;performance&nbsp;issue&nbsp;during&nbsp;zoomin&nbsp;and&nbsp;zoomout?&nbsp;if&nbsp;yes,&nbsp;would&nbsp;you&nbsp;let&nbsp;us&nbsp;know&nbsp;more&nbsp;details&nbsp;on&nbsp;it?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Troy

---

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [June 13, 2014, 5:06am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/3 "2014-06-13T05:06:47Z")

</div>

Hi,  
  
  
  
&nbsp;&nbsp;&nbsp;&nbsp;In&nbsp;my&nbsp;application&nbsp;I&nbsp;am&nbsp;plotting&nbsp;features&nbsp;using&nbsp;inmemoryfeaturelayer.&nbsp;Along&nbsp;with&nbsp;this&nbsp;I&nbsp;am&nbsp;loading&nbsp;shapefiles&nbsp;also.&nbsp;After&nbsp;loading&nbsp;all&nbsp;these&nbsp;stuff&nbsp;whenever&nbsp;user&nbsp;click&nbsp;zoom&nbsp;in&nbsp;button&nbsp;the&nbsp;response&nbsp;comes&nbsp;from&nbsp;system&nbsp;is&nbsp;little&nbsp;slow.&nbsp;As&nbsp;per&nbsp;this&nbsp;scenario&nbsp;what&nbsp;to&nbsp;check&nbsp;to&nbsp;improve&nbsp;or&nbsp;to&nbsp;make&nbsp;rendering&nbsp;smooth,  
  
  
  
Thanks,  
  
Goral

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [June 15, 2014, 9:41pm UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/4 "2014-06-15T21:41:53Z")

</div>

Hi&nbsp;Goral,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Would&nbsp;you&nbsp;mind&nbsp;to&nbsp;attach&nbsp;a&nbsp;sample&nbsp;or&nbsp;any&nbsp;codes&nbsp;here&nbsp;to&nbsp;show&nbsp;what&nbsp;the&nbsp;performance&nbsp;looks&nbsp;like?&nbsp;Can&nbsp;you&nbsp;let&nbsp;us&nbsp;know&nbsp;how&nbsp;many&nbsp;layers&nbsp;and&nbsp;features&nbsp;you&nbsp;are&nbsp;using&nbsp;in&nbsp;the&nbsp;map&nbsp;and&nbsp;how&nbsp;large&nbsp;of&nbsp;the&nbsp;shape&nbsp;files&nbsp;are?&nbsp;We&nbsp;want&nbsp;to&nbsp;have&nbsp;a&nbsp;summary&nbsp;on&nbsp;your&nbsp;scenario.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Troy

---

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [June 18, 2014, 11:40pm UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/5 "2014-06-18T23:40:21Z")

</div>

Hi,  
  
  
  
&nbsp;&nbsp;&nbsp;Below&nbsp;is&nbsp;the&nbsp;code&nbsp;for&nbsp;simple&nbsp;point&nbsp;layer.  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

> > `  ``InMemoryFeatureLayer impoint = ``new`&nbsp;`InMemoryFeatureLayer();`  
> > `  ``impoint.FeatureSource.Open();`  
> > `  ``impoint.FeatureSource.BeginTransaction();`  
> > `  ``impoint.Columns.Add(``new`&nbsp;`FeatureSourceColumn(``"Name"``));`  
> > `  ``impoint.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = ``new`&nbsp;`PointStyle(PointSymbolType.Circle, ``new`&nbsp;&nbsp;&nbsp;`GeoSolidBrush(GeoColor.SimpleColors.Black), 1);`  
> > `  ``impoint.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;`  
> > `  ``impoint.ZoomLevelSet.ZoomLevel05.DefaultTextStyle = ``new`&nbsp;`TextStyle(``"Name"``, ``new`&nbsp;`GeoFont(``"Arial"``, 8), ``new`&nbsp;`GeoSolidBrush(GeoColor.SimpleColors.LightYellow));`  
> > `  ``impoint.ZoomLevelSet.ZoomLevel05.DefaultTextStyle.XOffsetInPixel = 10;`  
> > `  ``impoint.ZoomLevelSet.ZoomLevel05.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;`  
> > ` ``for`&nbsp;`(``int`&nbsp;`i = 0; i < dt.Rows.Count; i++)`  
> > `  ``{`  
> > `      `&nbsp;  
> > `      ``Feature fpoint = ``new`&nbsp;`Feature(BaseShape.CreateShapeFromWellKnownData(``"POINT("`&nbsp;`+  dt.Rows[`_`"Lon"``].ToString() + ``" "`&nbsp;`+ dt.Rows[``"Lat"``].ToString() + ``")"``));`_  
> >   
> > _`      ``fpoint.ColumnValues.Add(``"Name"``, dt.Rows[``"Name"``].ToString());`_  
> >   
> > _`     ``impoint.InternalFeatures.Add(fpoint);`  
> > ` ``}`  
> > `LayerOverlay lpoint = ``new`&nbsp;`LayerOverlay();`  
> > `lpoint .Layers.Add(``"PointLayer"``, impoint);`  
> > `wfMap.Overlays.Add(``"PointOverlay"``, lpoint);`_
> 
>   
>   
> _&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This&nbsp;is&nbsp;one&nbsp;of&nbsp;the&nbsp;methods&nbsp;we&nbsp;are&nbsp;using&nbsp;to&nbsp;plot&nbsp;features&nbsp;like&nbsp;line,polygon&nbsp;with&nbsp;respective&nbsp;changes.&nbsp;Along&nbsp;with&nbsp;this&nbsp;we&nbsp;are&nbsp;loading&nbsp;terrain&nbsp;data&nbsp;shapefiles._  
>   
> _&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;One&nbsp;more&nbsp;my&nbsp;doubt&nbsp;is&nbsp;if&nbsp;we&nbsp;are&nbsp;assigning&nbsp;different&nbsp;colors&nbsp;using&nbsp;valuestyle&nbsp;will&nbsp;it&nbsp;affect&nbsp;performance.&nbsp;And&nbsp;also&nbsp;throw&nbsp;lights&nbsp;on&nbsp;other&nbsp;aspects._  
>   
>   
>   
> _Thanks,_  
>   
> _Goral_

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [June 19, 2014, 9:10pm UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/6 "2014-06-19T21:10:25Z")

</div>

Goral,  
  
  
  
The&nbsp;code&nbsp;looks&nbsp;fine&nbsp;and&nbsp;I&nbsp;test&nbsp;the&nbsp;InMemoryFeatureLayer&nbsp;with&nbsp;3000&nbsp;points&nbsp;and&nbsp;3000&nbsp;polygons&nbsp;but&nbsp;seems&nbsp;the&nbsp;performance&nbsp;is&nbsp;good.&nbsp;The&nbsp;attach&nbsp;is&nbsp;my&nbsp;test&nbsp;code&nbsp;based&nbsp;on&nbsp;yours.  
  
Could&nbsp;you&nbsp;let&nbsp;me&nbsp;know&nbsp;how&nbsp;many&nbsp;points&nbsp;and&nbsp;line&nbsp;or&nbsp;polygons&nbsp;feature&nbsp;from&nbsp;the&nbsp;datatable?&nbsp;and&nbsp;how&nbsp;large&nbsp;are&nbsp;the&nbsp;terrain&nbsp;shape&nbsp;files?  
  
If&nbsp;necessary,&nbsp;the&nbsp;whole&nbsp;codes&nbsp;on&nbsp;how&nbsp;you&nbsp;define&nbsp;the&nbsp;layers&nbsp;and&nbsp;add&nbsp;the&nbsp;features&nbsp;is&nbsp;appreciate.&nbsp;Or&nbsp;a&nbsp;video&nbsp;is&nbsp;better&nbsp;to&nbsp;show&nbsp;the&nbsp;performance.&nbsp;Here&nbsp;is&nbsp;a&nbsp;smart&nbsp;and&nbsp;useful&nbsp;tool&nbsp;which&nbsp;might&nbsp;helps&nbsp;on&nbsp;this.&nbsp;techsmith.com/jing.html  
  
  
  
Thanks,  
  
Troy  
  
[CreateAnInMemoryFeatureLayer.zip](https://community.thinkgeo.com/uploads/default/original/2X/a/a0fa8079b948a73c519b449f47f2c1f1ca9e4ae8.zip) (1.84 KB)

---

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [June 24, 2014, 12:27am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/7 "2014-06-24T00:27:29Z")

</div>

Hi,  
  
  
  
&nbsp;&nbsp;&nbsp;Thanks&nbsp;for&nbsp;reply.&nbsp;I&nbsp;will&nbsp;upload&nbsp;detail&nbsp;things&nbsp;and&nbsp;if&nbsp;possible&nbsp;vedio&nbsp;using&nbsp;suggested&nbsp;link&nbsp;in&nbsp;short&nbsp;time.  
  
  
  
Thanks&nbsp;&&nbsp;Regards,  
  
Goral

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [June 24, 2014, 9:30pm UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/8 "2014-06-24T21:30:27Z")

</div>

Okay,&nbsp;Goral,&nbsp;We&nbsp;will&nbsp;wait&nbsp;for&nbsp;your&nbsp;updates.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Troy

---

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [June 25, 2014, 6:35am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/9 "2014-06-25T06:35:10Z")

</div>

Hi,  
  
  
  
&nbsp;&nbsp;I&nbsp;have&nbsp;attached&nbsp;code&nbsp;file.&nbsp;In&nbsp;that&nbsp;I&nbsp;have&nbsp;loaded&nbsp;only&nbsp;terrain&nbsp;file&nbsp;using&nbsp;value&nbsp;style.&nbsp;Please&nbsp;go&nbsp;through&nbsp;it&nbsp;and&nbsp;guide&nbsp;to&nbsp;improve.  
  
  
  
Thanks&nbsp;&&nbsp;Regards,  
  
Goral  
  
[001\_frmContourlines.cs](https://community.thinkgeo.com/uploads/default/original/2X/9/92bcdd940eb40844dd581da658aba9cc118aec56.cs) (15.4 KB)

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [June 26, 2014, 6:52am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/10 "2014-06-26T06:52:46Z")

</div>

Hi&nbsp;Goral,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;the&nbsp;sample&nbsp;codes&nbsp;and&nbsp;it&nbsp;is&nbsp;very&nbsp;useful.&nbsp;  
&nbsp;We&nbsp;generate&nbsp;a&nbsp;new&nbsp;shapefile&nbsp;based&nbsp;on&nbsp;your&nbsp;codes&nbsp;and&nbsp;insert&nbsp;3000&nbsp;features&nbsp;into&nbsp;it.&nbsp;During&nbsp;our&nbsp;test,&nbsp;if&nbsp;we&nbsp;comment&nbsp;out&nbsp;the&nbsp;TextStyle,&nbsp;or&nbsp;set&nbsp;the&nbsp;default&nbsp;textstyle&nbsp;for&nbsp;each&nbsp;valueItem&nbsp;rather&nbsp;than&nbsp;apply&nbsp;the&nbsp;text&nbsp;style&nbsp;on&nbsp;all&nbsp;the&nbsp;feature,&nbsp;then&nbsp;seems&nbsp;the&nbsp;performance&nbsp;is&nbsp;much&nbsp;better.&nbsp;Would&nbsp;you&nbsp;please&nbsp;do&nbsp;a&nbsp;verify&nbsp;to&nbsp;see&nbsp;if&nbsp;the&nbsp;text&nbsp;style&nbsp;affect&nbsp;the&nbsp;performance?&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;yes,&nbsp;I&nbsp;think&nbsp;this&nbsp;is&nbsp;because&nbsp;we&nbsp;apply&nbsp;this&nbsp;style&nbsp;from&nbsp;zoomlevel&nbsp;01&nbsp;to&nbsp;20&nbsp;which&nbsp;means&nbsp;the&nbsp;map&nbsp;will&nbsp;render&nbsp;all&nbsp;the&nbsp;text&nbsp;for&nbsp;all&nbsp;the&nbsp;features&nbsp;when&nbsp;the&nbsp;zoomlevel&nbsp;is&nbsp;high.&nbsp;It’s&nbsp;a&nbsp;good&nbsp;practice&nbsp;that&nbsp;we&nbsp;only&nbsp;display&nbsp;the&nbsp;label&nbsp;within&nbsp;a&nbsp;low&nbsp;level&nbsp;like&nbsp;from&nbsp;10&nbsp;to&nbsp;20.&nbsp;But&nbsp;this&nbsp;depends&nbsp;on&nbsp;what’s&nbsp;your&nbsp;case.&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;any&nbsp;questions&nbsp;or&nbsp;I&nbsp;am&nbsp;misunderstanding,&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Troy

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [June 26, 2014, 6:53am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/11 "2014-06-26T06:53:56Z")

</div>

Hi&nbsp;Goral,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;the&nbsp;sample&nbsp;codes&nbsp;and&nbsp;it&nbsp;is&nbsp;very&nbsp;useful.&nbsp;  
&nbsp;We&nbsp;generate&nbsp;a&nbsp;new&nbsp;shapefile&nbsp;based&nbsp;on&nbsp;your&nbsp;codes&nbsp;and&nbsp;insert&nbsp;3000&nbsp;features&nbsp;into&nbsp;it.&nbsp;During&nbsp;our&nbsp;test,&nbsp;if&nbsp;we&nbsp;comment&nbsp;out&nbsp;the&nbsp;TextStyle,&nbsp;or&nbsp;set&nbsp;the&nbsp;default&nbsp;textstyle&nbsp;for&nbsp;each&nbsp;valueItem&nbsp;rather&nbsp;than&nbsp;apply&nbsp;the&nbsp;text&nbsp;style&nbsp;on&nbsp;all&nbsp;the&nbsp;feature,&nbsp;then&nbsp;seems&nbsp;the&nbsp;performance&nbsp;is&nbsp;much&nbsp;better.&nbsp;Would&nbsp;you&nbsp;please&nbsp;do&nbsp;a&nbsp;verify&nbsp;to&nbsp;see&nbsp;if&nbsp;the&nbsp;text&nbsp;style&nbsp;affect&nbsp;the&nbsp;performance?&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;yes,&nbsp;I&nbsp;think&nbsp;this&nbsp;is&nbsp;because&nbsp;we&nbsp;apply&nbsp;this&nbsp;style&nbsp;from&nbsp;zoomlevel&nbsp;01&nbsp;to&nbsp;20&nbsp;which&nbsp;means&nbsp;the&nbsp;map&nbsp;will&nbsp;render&nbsp;all&nbsp;the&nbsp;text&nbsp;for&nbsp;all&nbsp;the&nbsp;features&nbsp;when&nbsp;the&nbsp;zoomlevel&nbsp;is&nbsp;high.&nbsp;It’s&nbsp;a&nbsp;good&nbsp;practice&nbsp;that&nbsp;we&nbsp;only&nbsp;display&nbsp;the&nbsp;label&nbsp;within&nbsp;a&nbsp;low&nbsp;level&nbsp;like&nbsp;from&nbsp;10&nbsp;to&nbsp;20.&nbsp;But&nbsp;this&nbsp;depends&nbsp;on&nbsp;what’s&nbsp;your&nbsp;case.&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;any&nbsp;questions&nbsp;or&nbsp;I&nbsp;am&nbsp;misunderstanding,&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Troy

---

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [June 26, 2014, 7:04am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/12 "2014-06-26T07:04:12Z")

</div>

Hi,  
  
  
  
&nbsp;&nbsp;&nbsp;Thanks&nbsp;for&nbsp;reply.&nbsp;Ok&nbsp;I&nbsp;will&nbsp;try&nbsp;to&nbsp;remove&nbsp;textstyle&nbsp;from&nbsp;lower&nbsp;zoomlevels&nbsp;and&nbsp;check&nbsp;it.&nbsp;  
  
  
  
Thanks&nbsp;&&nbsp;Regards,  
  
Goral

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [June 26, 2014, 9:53pm UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/13 "2014-06-26T21:53:18Z")

</div>

Okay&nbsp;Goral,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;question&nbsp;please&nbsp;let&nbsp;us&nbsp;know.&nbsp;  
&nbsp;Troy

---

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [July 2, 2014, 4:07am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/14 "2014-07-02T04:07:48Z")

</div>

Hi,  
  
  
  
  
  
&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;have&nbsp;tried&nbsp;to&nbsp;do&nbsp;performance&nbsp;check&nbsp;by&nbsp;removing&nbsp;textstyle&nbsp;for&nbsp;the&nbsp;layer.&nbsp;But&nbsp;not&nbsp;significance&nbsp;change&nbsp;is&nbsp;in&nbsp;performance.&nbsp;I&nbsp;think&nbsp;because&nbsp;of&nbsp;more&nbsp;number&nbsp;of&nbsp;color&nbsp;style&nbsp;applied&nbsp;rendering&nbsp;become&nbsp;slow.  
  
  
  
Thanks&nbsp;&&nbsp;Regards,  
  
Goral

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [July 3, 2014, 5:00am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/15 "2014-07-03T05:00:55Z")

</div>

Hi&nbsp;Groral,  
  
  
  
After&nbsp;checking&nbsp;the&nbsp;code,&nbsp;following&nbsp;are&nbsp;some&nbsp;possible&nbsp;reasons&nbsp;that&nbsp;I&nbsp;can&nbsp;imagine,&nbsp;please&nbsp;take&nbsp;a&nbsp;check.  
  
  
  
1.&nbsp;A&nbsp;big&nbsp;list&nbsp;of&nbsp;ValueItems&nbsp;is&nbsp;added&nbsp;to&nbsp;the&nbsp;ValueStyle,&nbsp;to&nbsp;some&nbsp;extent,&nbsp;it&nbsp;may&nbsp;slow&nbsp;down&nbsp;the&nbsp;performance&nbsp;a&nbsp;bit.&nbsp;Is&nbsp;it&nbsp;possible&nbsp;for&nbsp;your&nbsp;apply&nbsp;the&nbsp;Server&nbsp;Cache&nbsp;to&nbsp;some&nbsp;Overlays?&nbsp;which&nbsp;you&nbsp;don’t&nbsp;need&nbsp;to&nbsp;update&nbsp;the&nbsp;data&nbsp;in&nbsp;them.&nbsp;It&nbsp;will&nbsp;improve&nbsp;the&nbsp;performance&nbsp;a&nbsp;lot.  
  
  
  
2.&nbsp;Can&nbsp;you&nbsp;try&nbsp;comments&nbsp;out&nbsp;the&nbsp;following&nbsp;data,&nbsp;and&nbsp;then&nbsp;rebuild&nbsp;the&nbsp;app&nbsp;to&nbsp;have&nbsp;a&nbsp;try.  
  
`tc.TextLineSegmentRatio = double.MaxValue;tc.SplineType = SplineType.StandardSplining;`  
  
3.&nbsp;How&nbsp;many&nbsp;features&nbsp;loaded&nbsp;in&nbsp;the&nbsp;InMemoryFeatureLayer?&nbsp;Is&nbsp;there&nbsp;any&nbsp;complicated&nbsp;styles&nbsp;applied?&nbsp;Can&nbsp;you&nbsp;comment&nbsp;out&nbsp;to&nbsp;have&nbsp;a&nbsp;try&nbsp;to&nbsp;see&nbsp;if&nbsp;that’s&nbsp;the&nbsp;reason?  
  
  
  
4.&nbsp;Please&nbsp;try&nbsp;commenting&nbsp;out&nbsp;all&nbsp;the&nbsp;Adornment&nbsp;related&nbsp;code,&nbsp;such&nbsp;as&nbsp;“GraticuleAdornmentLayer”&nbsp;in&nbsp;the&nbsp;demo&nbsp;code,&nbsp;to&nbsp;see&nbsp;if&nbsp;you&nbsp;got&nbsp;any&nbsp;improvement?  
  
  
  
5.&nbsp;Can&nbsp;you&nbsp;try&nbsp;SingleTile&nbsp;to&nbsp;see&nbsp;if&nbsp;there&nbsp;is&nbsp;any&nbsp;improvement?  
  
  
  
Regards,  
  
Johnny

---

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [July 7, 2014, 12:37am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/16 "2014-07-07T00:37:45Z")

</div>

Hi,  
  
  
  
&nbsp;&nbsp;&nbsp;Thanks&nbsp;for&nbsp;reply.&nbsp;I&nbsp;have&nbsp;gone&nbsp;through&nbsp;the&nbsp;points&nbsp;you&nbsp;have&nbsp;suggested.  
  
&nbsp;1)&nbsp;Ya&nbsp;its&nbsp;required&nbsp;to&nbsp;give&nbsp;big&nbsp;list&nbsp;of&nbsp;value&nbsp;items.&nbsp;But&nbsp;can&nbsp;you&nbsp;suggest&nbsp;example&nbsp;of&nbsp;Server&nbsp;Cache&nbsp;because&nbsp;I&nbsp;have&nbsp;no&nbsp;idea&nbsp;about&nbsp;it.&nbsp;  
  
&nbsp;2)&nbsp;In&nbsp;text&nbsp;style&nbsp;I&nbsp;want&nbsp;terrain&nbsp;related&nbsp;lables&nbsp;come&nbsp;aligned&nbsp;with&nbsp;lines&nbsp;thats&nbsp;why&nbsp;I&nbsp;have&nbsp;written&nbsp;given&nbsp;splinetype&nbsp;in&nbsp;text&nbsp;style.&nbsp;If&nbsp;any&nbsp;other&nbsp;thing&nbsp;can&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;help&nbsp;please&nbsp;suggest.  
  
&nbsp;3)&nbsp;In&nbsp;Inmemoryfeaturelayer&nbsp;features&nbsp;are&nbsp;loaded&nbsp;as&nbsp;per&nbsp;requirement.&nbsp;Its&nbsp;true&nbsp;sometime&nbsp;it&nbsp;has&nbsp;some&nbsp;complected&nbsp;style.  
  
&nbsp;4)&nbsp;Ok.&nbsp;Its&nbsp;required&nbsp;to&nbsp;load&nbsp;Adornmentlayer&nbsp;along&nbsp;with&nbsp;other&nbsp;layers.&nbsp;  
  
&nbsp;5)&nbsp;To&nbsp;apply&nbsp;tiling&nbsp;concept&nbsp;I&nbsp;am&nbsp;loading&nbsp;data&nbsp;block&nbsp;or&nbsp;regionwise.  
  
&nbsp;  
  
&nbsp;&nbsp;&nbsp;Conclusion&nbsp;from&nbsp;all&nbsp;this&nbsp;point&nbsp;I&nbsp;got&nbsp;is,&nbsp;if&nbsp;more&nbsp;style&nbsp;and&nbsp;different&nbsp;types&nbsp;of&nbsp;layers&nbsp;together&nbsp;required&nbsp;then&nbsp;it&nbsp;will&nbsp;create&nbsp;little&nbsp;loss&nbsp;in&nbsp;performance.  
  
  
  
Thanks&nbsp;&&nbsp;Regards,  
  
Goral  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [July 8, 2014, 7:25am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/17 "2014-07-08T07:25:11Z")

</div>

Hi&nbsp;Goral,  
  
  
  
1):For&nbsp;the&nbsp;cache&nbsp;Johnny&nbsp;mentioned,&nbsp;we&nbsp;can&nbsp;add&nbsp;cache&nbsp;support&nbsp;simply&nbsp;to&nbsp;assign&nbsp;the&nbsp;TileCache&nbsp;property&nbsp;for&nbsp;Overlays.&nbsp;For&nbsp;instance,&nbsp;  
  
LayerOverlay&nbsp;layerOverlay&nbsp;=&nbsp;new&nbsp;LayerOverlay();  
layerOverlay.TileCache&nbsp;=&nbsp;new&nbsp;FileBitmapTileCache(“D:\Cache”,“Desktop”);  
  
2):We&nbsp;suggest&nbsp;you&nbsp;to&nbsp;comment&nbsp;the&nbsp;Splinetype&nbsp;is&nbsp;we&nbsp;want&nbsp;to&nbsp;narrow&nbsp;down&nbsp;if&nbsp;there&nbsp;are&nbsp;some&nbsp;potential&nbsp;properties&nbsp;to&nbsp;affect&nbsp;the&nbsp;performance.&nbsp;So,&nbsp;It&nbsp;should&nbsp;be&nbsp;worth&nbsp;to&nbsp;try&nbsp;and&nbsp;then&nbsp;roll&nbsp;back&nbsp;to&nbsp;see&nbsp;if&nbsp;the&nbsp;performance&nbsp;improve&nbsp;because&nbsp;of&nbsp;those&nbsp;properties.  
  
3):Would&nbsp;you&nbsp;please&nbsp;try&nbsp;to&nbsp;comment&nbsp;out&nbsp;all&nbsp;the&nbsp;layers&nbsp;but&nbsp;the&nbsp;InMemoryFeatureLayer&nbsp;to&nbsp;see&nbsp;if&nbsp;we&nbsp;can&nbsp;narrow&nbsp;down&nbsp;the&nbsp;issue&nbsp;on&nbsp;InMemoryFeatureLayer&nbsp;?  
  
4):&nbsp;like&nbsp;the&nbsp;above&nbsp;way,&nbsp;comment&nbsp;out&nbsp;the&nbsp;adornment&nbsp;layer&nbsp;to&nbsp;see&nbsp;if&nbsp;any&nbsp;performance&nbsp;improve.  
  
5):&nbsp;Sorry&nbsp;I&nbsp;didn’t&nbsp;got&nbsp;it,&nbsp;would&nbsp;you&nbsp;please&nbsp;give&nbsp;more&nbsp;details.  
  
  
  
Btw,&nbsp;I&nbsp;am&nbsp;wondering&nbsp;if&nbsp;you&nbsp;are&nbsp;using&nbsp;the&nbsp;Iso&nbsp;line&nbsp;layer?&nbsp;I&nbsp;ask&nbsp;this&nbsp;question&nbsp;is&nbsp;because&nbsp;I&nbsp;noticed&nbsp;you&nbsp;are&nbsp;asking&nbsp;the&nbsp;Isoline&nbsp;question&nbsp;from&nbsp;other&nbsp;threads.  
  
Thanks,  
  
Troy

---

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [July 16, 2014, 11:43pm UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/18 "2014-07-16T23:43:30Z")

</div>

Hi,  
  
  
  
&nbsp;&nbsp;&nbsp;I&nbsp;have&nbsp;observed&nbsp;&nbsp;main&nbsp;difference&nbsp;in&nbsp;performance&nbsp;when&nbsp;simple&nbsp;style&nbsp;is&nbsp;applied&nbsp;to&nbsp;layer.  
  
  
  
&nbsp;&nbsp;&nbsp;Ya&nbsp;In&nbsp;other&nbsp;thread&nbsp;I&nbsp;am&nbsp;asking&nbsp;isoline&nbsp;questions&nbsp;to&nbsp;find&nbsp;out&nbsp;how&nbsp;to&nbsp;inherit&nbsp;different&nbsp;algorithm&nbsp;to&nbsp;draw&nbsp;contours.&nbsp;But&nbsp;to&nbsp;meet&nbsp;my&nbsp;current&nbsp;requirement&nbsp;I&nbsp;am&nbsp;loading&nbsp;shape&nbsp;files.  
  
  
  
Thanks&nbsp;&&nbsp;Regards,  
  
Goral

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [July 18, 2014, 3:25am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/19 "2014-07-18T03:25:14Z")

</div>

Hi&nbsp;Coral,&nbsp;  
  
  
  
Okay,&nbsp;we&nbsp;know&nbsp;it&nbsp;is&nbsp;not&nbsp;related&nbsp;with&nbsp;Isoline&nbsp;layer&nbsp;now.&nbsp;  
  
But&nbsp;as&nbsp;for&nbsp;your&nbsp;feedback,&nbsp;I&nbsp;am&nbsp;afraid&nbsp;it&nbsp;is&nbsp;hard&nbsp;for&nbsp;us&nbsp;to&nbsp;obtain&nbsp;any&nbsp;useful&nbsp;information&nbsp;in&nbsp;it.&nbsp;I&nbsp;am&nbsp;wondering&nbsp;did&nbsp;you&nbsp;get&nbsp;any&nbsp;useful&nbsp;information&nbsp;or&nbsp;test&nbsp;your&nbsp;app&nbsp;with&nbsp;my&nbsp;previous&nbsp;suggestions?&nbsp;would&nbsp;you&nbsp;mind&nbsp;to&nbsp;send&nbsp;us&nbsp;your&nbsp;sample&nbsp;or&nbsp;a&nbsp;test&nbsp;video?&nbsp;  
  
I&nbsp;really&nbsp;hope&nbsp;we&nbsp;can&nbsp;have&nbsp;a&nbsp;big&nbsp;progress&nbsp;on&nbsp;this&nbsp;thread.&nbsp;  
  
  
  
Regards,&nbsp;  
  
Troy

---

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [July 18, 2014, 7:12am UTC](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409/20 "2014-07-18T07:12:33Z")

</div>

Hi,  
  
  
  
&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;dont&nbsp;know&nbsp;weather&nbsp;I&nbsp;am&nbsp;able&nbsp;to&nbsp;explain&nbsp;or&nbsp;not&nbsp;so&nbsp;again&nbsp;I&nbsp;am&nbsp;explaining.&nbsp;I&nbsp;am&nbsp;loading&nbsp;contour&nbsp;(elevation)&nbsp;lines&nbsp;shapefile.&nbsp;In&nbsp;that&nbsp;I&nbsp;am&nbsp;applying&nbsp;different&nbsp;color&nbsp;to&nbsp;all&nbsp;levels&nbsp;of&nbsp;contours.&nbsp;For&nbsp;that&nbsp;I&nbsp;am&nbsp;using&nbsp;valuestyle.&nbsp;To&nbsp;show&nbsp;related&nbsp;height&nbsp;I&nbsp;amusing&nbsp;text&nbsp;style.&nbsp;Due&nbsp;to&nbsp;more&nbsp;number&nbsp;of&nbsp;feature&nbsp;and&nbsp;valuestyle&nbsp;rendering&nbsp;speed&nbsp;got&nbsp;affected.(&nbsp;I&nbsp;feel&nbsp;from&nbsp;my&nbsp;experience).  
  
  
  
&nbsp;&nbsp;&nbsp;I&nbsp;have&nbsp;gone&nbsp;through&nbsp;your&nbsp;suggested&nbsp;point&nbsp;for&nbsp;improvement.&nbsp;I&nbsp;found&nbsp;relative&nbsp;improvement&nbsp;mainly&nbsp;on&nbsp;two&nbsp;points.  
  
&nbsp;&nbsp;1)&nbsp;Enabling&nbsp;textstyle&nbsp;on&nbsp;higher&nbsp;zoomlevel&nbsp;made&nbsp;a&nbsp;difference.  
  
&nbsp;&nbsp;2)&nbsp;I&nbsp;have&nbsp;tried&nbsp;to&nbsp;apply&nbsp;single&nbsp;colors&nbsp;to&nbsp;all&nbsp;level.&nbsp;I&nbsp;think&nbsp;due&nbsp;to&nbsp;this&nbsp;rendering&nbsp;become&nbsp;easy&nbsp;so&nbsp;it&nbsp;has&nbsp;given&nbsp;improved&nbsp;result.  
  
  
  
&nbsp;&nbsp;&nbsp;I&nbsp;will&nbsp;try&nbsp;to&nbsp;send&nbsp;it.&nbsp;Otherwise&nbsp;before&nbsp;also&nbsp;I&nbsp;have&nbsp;attached&nbsp;one&nbsp;cs&nbsp;file&nbsp;in&nbsp;which&nbsp;I&nbsp;have&nbsp;written&nbsp;code&nbsp;for&nbsp;applying&nbsp;valuestyle.&nbsp;For&nbsp;time&nbsp;being&nbsp;it&nbsp;can&nbsp;be&nbsp;useful.&nbsp;  
  
  
  
Thanks&nbsp;&&nbsp;Regards,  
  
Goral&nbsp;  
  
&nbsp;&nbsp;&nbsp;

[Next page](https://community.thinkgeo.com/t/to-improve-rendering-speed/2409.md?page=2)
