# Tile Buffer value (recommended value)

**URL:** <https://community.thinkgeo.com/t/tile-buffer-value-recommended-value/2870>\
**Category:** WPF\
**Created:** [November 9, 2010, 2:47pm UTC](https://community.thinkgeo.com/t/tile-buffer-value-recommended-value/2870 "2010-11-09T14:47:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anil2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/7feea3/32.png) [@Anil2](https://community.thinkgeo.com/u/Anil2)\
**Post date:** [November 9, 2010, 2:47pm UTC](https://community.thinkgeo.com/t/tile-buffer-value-recommended-value/2870/1 "2010-11-09T14:47:17Z")

</div>

Hi&nbsp;Thinkgeo,

Setting&nbsp;a&nbsp;value&nbsp;of&nbsp;1&nbsp;for&nbsp;TileBuffer&nbsp;improves&nbsp;user&nbsp;experience&nbsp;while&nbsp;pannning.&nbsp;Can&nbsp;we&nbsp;set&nbsp;a&nbsp;higher&nbsp;value&nbsp;of&nbsp;2&nbsp;or&nbsp;more?&nbsp;

Regards,

Anil

---

<div class="post-metadata">

**Author:** ![Howard](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/h/90ced4/32.png) [@Howard](https://community.thinkgeo.com/u/Howard)\
**Post date:** [November 9, 2010, 8:12pm UTC](https://community.thinkgeo.com/t/tile-buffer-value-recommended-value/2870/2 "2010-11-09T20:12:30Z")

</div>

Hi&nbsp;Anil,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;recommend&nbsp;to&nbsp;set&nbsp;it&nbsp;to&nbsp;2-3.&nbsp;Also,&nbsp;the&nbsp;tile&nbsp;size&nbsp;is&nbsp;a&nbsp;factor&nbsp;we&nbsp;need&nbsp;to&nbsp;consider&nbsp;about.&nbsp;For&nbsp;example,&nbsp;if&nbsp;we&nbsp;have&nbsp;512\*512&nbsp;map&nbsp;with&nbsp;tile&nbsp;size&nbsp;256\*256.&nbsp;Then&nbsp;we&nbsp;will&nbsp;have&nbsp;4&nbsp;tiles&nbsp;in&nbsp;perfect&nbsp;status&nbsp;(You&nbsp;know&nbsp;actually&nbsp;it’s&nbsp;9&nbsp;tiles&nbsp;if&nbsp;the&nbsp;tile&nbsp;is&nbsp;crossing&nbsp;the&nbsp;edge,&nbsp;so&nbsp;we&nbsp;just&nbsp;take&nbsp;it&nbsp;as&nbsp;an&nbsp;example&nbsp;here).&nbsp;When&nbsp;we&nbsp;set&nbsp;TileBuffer&nbsp;to&nbsp;1,&nbsp;so&nbsp;we&nbsp;will&nbsp;put&nbsp;tiles&nbsp;surround&nbsp;the&nbsp;existing&nbsp;tiles.&nbsp;So&nbsp;there&nbsp;will&nbsp;be&nbsp;12&nbsp;more.&nbsp;If&nbsp;we&nbsp;set&nbsp;TileBuffer&nbsp;to&nbsp;2,&nbsp;and&nbsp;32&nbsp;more&nbsp;tiles&nbsp;will&nbsp;be&nbsp;added&nbsp;into&nbsp;the&nbsp;map.&nbsp;But&nbsp;in&nbsp;the&nbsp;real&nbsp;world,&nbsp;there&nbsp;will&nbsp;be&nbsp;more&nbsp;than&nbsp;that.&nbsp;If&nbsp;one&nbsp;tile&nbsp;takes&nbsp;20ms&nbsp;to&nbsp;draw,&nbsp;we&nbsp;can&nbsp;imagine&nbsp;how&nbsp;long&nbsp;the&nbsp;extra&nbsp;time&nbsp;will&nbsp;take.&nbsp;You&nbsp;might&nbsp;not&nbsp;notice&nbsp;the&nbsp;speed&nbsp;because&nbsp;it’s&nbsp;drawing&nbsp;in&nbsp;another&nbsp;thread.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Actually,&nbsp;in&nbsp;WPF,&nbsp;the&nbsp;more&nbsp;visible&nbsp;Logic&nbsp;tree&nbsp;node&nbsp;is&nbsp;maintained,&nbsp;the&nbsp;slower&nbsp;performance&nbsp;we&nbsp;have&nbsp;if&nbsp;we&nbsp;have&nbsp;a&nbsp;normal&nbsp;graphic&nbsp;card.&nbsp;So&nbsp;we&nbsp;don’t&nbsp;recommend&nbsp;to&nbsp;set&nbsp;this&nbsp;value&nbsp;too&nbsp;big.&nbsp;  
&nbsp;&nbsp;  
&nbsp;On&nbsp;the&nbsp;other&nbsp;hand,&nbsp;we&nbsp;have&nbsp;an&nbsp;idea&nbsp;to&nbsp;pre-generate&nbsp;the&nbsp;buffer&nbsp;in&nbsp;the&nbsp;background&nbsp;thread,&nbsp;so&nbsp;there&nbsp;won’t&nbsp;be&nbsp;an&nbsp;actual&nbsp;logic&nbsp;tree&nbsp;node&nbsp;for&nbsp;the&nbsp;buffer&nbsp;and&nbsp;it&nbsp;will&nbsp;enhance&nbsp;the&nbsp;performance&nbsp;a&nbsp;bit.&nbsp;It’s&nbsp;just&nbsp;a&nbsp;though&nbsp;now&nbsp;and&nbsp;we&nbsp;will&nbsp;check&nbsp;it&nbsp;later.&nbsp;  
&nbsp;&nbsp;  
&nbsp;So&nbsp;we&nbsp;recommend&nbsp;to&nbsp;set&nbsp;it&nbsp;to&nbsp;2-3.&nbsp;Hope&nbsp;it&nbsp;makes&nbsp;sense.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Howard
