<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Shape vs. Sprite</title>
	<atom:link href="http://jacksondunstan.com/articles/401/feed" rel="self" type="application/rss+xml" />
	<link>http://jacksondunstan.com/articles/401</link>
	<description>Mastering AS3</description>
	<lastBuildDate>Mon, 14 May 2012 17:02:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Gonçalo</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-25252</link>
		<dc:creator>Gonçalo</dc:creator>
		<pubDate>Fri, 23 Mar 2012 19:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-25252</guid>
		<description>Thank you! I enjoyed this article, just what I was looking for.</description>
		<content:encoded><![CDATA[<p>Thank you! I enjoyed this article, just what I was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-24183</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Wed, 07 Mar 2012 23:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-24183</guid>
		<description>You mean a comparison between &lt;code&gt;Bitmap&lt;/code&gt; and &lt;code&gt;Shape&lt;/code&gt; + &lt;code&gt;beginBitmapFill&lt;/code&gt;?</description>
		<content:encoded><![CDATA[<p>You mean a comparison between <code>Bitmap</code> and <code>Shape</code> + <code>beginBitmapFill</code>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arby</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-24181</link>
		<dc:creator>Arby</dc:creator>
		<pubDate>Wed, 07 Mar 2012 22:19:40 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-24181</guid>
		<description>I know I&#039;m late to the party here, but can I point out that you should also be testing a sprite bitmap, VS a shape with a bitmap fill !

Please email me if you try this.</description>
		<content:encoded><![CDATA[<p>I know I&#8217;m late to the party here, but can I point out that you should also be testing a sprite bitmap, VS a shape with a bitmap fill !</p>
<p>Please email me if you try this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 2012提升as3程序性能的十大要点 &#124; Flash开发者大会</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-24074</link>
		<dc:creator>2012提升as3程序性能的十大要点 &#124; Flash开发者大会</dc:creator>
		<pubDate>Tue, 06 Mar 2012 09:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-24074</guid>
		<description>[...] 7.使用专用的函数或者类，而不是通用的 Sprite比MovieClip省内存，Shape比Sprite省内存，BitmapData的copyPixels方法比draw方法更快。 8.尽量少的使用静态访问 [...]</description>
		<content:encoded><![CDATA[<p>[...] 7.使用专用的函数或者类，而不是通用的 Sprite比MovieClip省内存，Shape比Sprite省内存，BitmapData的copyPixels方法比draw方法更快。 8.尽量少的使用静态访问 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RR</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-13020</link>
		<dc:creator>RR</dc:creator>
		<pubDate>Tue, 20 Sep 2011 14:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-13020</guid>
		<description>Thank you for posting this analysis, I was looking all over for such comparisons and tests and also wanted to understand the differences between shape and sprite - your&#039;s was the most thorough and lucid. Thanks!</description>
		<content:encoded><![CDATA[<p>Thank you for posting this analysis, I was looking all over for such comparisons and tests and also wanted to understand the differences between shape and sprite &#8211; your&#8217;s was the most thorough and lucid. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Destroy Today / Blog Archive &#187; DisplayObjectUtil class added to DestroyFramework</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-424</link>
		<dc:creator>Destroy Today / Blog Archive &#187; DisplayObjectUtil class added to DestroyFramework</dc:creator>
		<pubDate>Fri, 04 Dec 2009 16:02:48 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-424</guid>
		<description>[...] benefit from fSprite&#8217;s methods, such as the Shape class. After seeing Jackson Dunstan&#8217;s comparison of the two, I realized I could be saving a solid amount memory and instantiation speed by using Shape instead [...]</description>
		<content:encoded><![CDATA[<p>[...] benefit from fSprite&#8217;s methods, such as the Shape class. After seeing Jackson Dunstan&#8217;s comparison of the two, I realized I could be saving a solid amount memory and instantiation speed by using Shape instead [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-343</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Sun, 01 Nov 2009 02:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-343</guid>
		<description>Yes, Sprites clearly have more functionality.  Hence my conclusion:

&lt;cite&gt;
So if you’re in need of better performance and &lt;em&gt;can live with the limited feature set of Shapes&lt;/em&gt;...
&lt;/cite&gt;

As for your disagreement about Shapes not being buttons at all, I think differently. While they would be very poor buttons directly given that they are not InteractiveObjects and thus have no mouse events, you could use a stage event listener, derive which shape was clicked, and respond as you would. This makes them poor buttons in my view.

Thank you for the lengthy comment! It&#039;s good to see others are passionate about such things. :)</description>
		<content:encoded><![CDATA[<p>Yes, Sprites clearly have more functionality.  Hence my conclusion:</p>
<p><cite><br />
So if you’re in need of better performance and <em>can live with the limited feature set of Shapes</em>&#8230;<br />
</cite></p>
<p>As for your disagreement about Shapes not being buttons at all, I think differently. While they would be very poor buttons directly given that they are not InteractiveObjects and thus have no mouse events, you could use a stage event listener, derive which shape was clicked, and respond as you would. This makes them poor buttons in my view.</p>
<p>Thank you for the lengthy comment! It&#8217;s good to see others are passionate about such things. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gio</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-342</link>
		<dc:creator>gio</dc:creator>
		<pubDate>Sun, 01 Nov 2009 01:55:10 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-342</guid>
		<description>Without considering the differences in memory dimensions of the single properties Sprite is three level down the hierarchy so it has more than 50% more properties than Shape.
28 (number of Shape Properties)

+6 (added InteractiveObject Properties)
+4 (added DisplayObjectContainer Properties)
+6 (added Sprite Properties)

About the rendering differences.
does the comparison make sense?
As you noted at the beginning of your post &quot;Shapes are more limited than Sprites in many ways&quot;
A shape rendering performance can be evaluated and measured only in relation to the type of graphics used inside it...
Shapes don&#039;t make poor buttons, they don&#039;t make buttons at all...
Shape exist almost exclusively to use the &#039;graphics&#039; inside them...

A Sprite rendering performance depend not only on the graphics but on all the added stuff...
A Sprite being a DisplayObjectContainer has children to take care of...
A sprite being an InteractiveObject may have to take care of &#039;interactivity&#039; issues.
A Sprite rendering performance can be evaluated and measured only in relation to the type of children and interactive events used inside it.


imho it&#039;s like comparing weight and performance of a pair of legs and an entire body:

- you don&#039;t need to create 100000 of legs and the same number of bodies to confirm that it takes more time to create a body than a pair of legs...
- they both run, and (without the upper body doing anything else) they run the same.
- legs are clearly lighter, it&#039;s pretty obvious that they weight less than a body that normally contains them. (read &#039;legs&#039; as &#039;graphics&#039; property here)</description>
		<content:encoded><![CDATA[<p>Without considering the differences in memory dimensions of the single properties Sprite is three level down the hierarchy so it has more than 50% more properties than Shape.<br />
28 (number of Shape Properties)</p>
<p>+6 (added InteractiveObject Properties)<br />
+4 (added DisplayObjectContainer Properties)<br />
+6 (added Sprite Properties)</p>
<p>About the rendering differences.<br />
does the comparison make sense?<br />
As you noted at the beginning of your post &#8220;Shapes are more limited than Sprites in many ways&#8221;<br />
A shape rendering performance can be evaluated and measured only in relation to the type of graphics used inside it&#8230;<br />
Shapes don&#8217;t make poor buttons, they don&#8217;t make buttons at all&#8230;<br />
Shape exist almost exclusively to use the &#8216;graphics&#8217; inside them&#8230;</p>
<p>A Sprite rendering performance depend not only on the graphics but on all the added stuff&#8230;<br />
A Sprite being a DisplayObjectContainer has children to take care of&#8230;<br />
A sprite being an InteractiveObject may have to take care of &#8216;interactivity&#8217; issues.<br />
A Sprite rendering performance can be evaluated and measured only in relation to the type of children and interactive events used inside it.</p>
<p>imho it&#8217;s like comparing weight and performance of a pair of legs and an entire body:</p>
<p>- you don&#8217;t need to create 100000 of legs and the same number of bodies to confirm that it takes more time to create a body than a pair of legs&#8230;<br />
- they both run, and (without the upper body doing anything else) they run the same.<br />
- legs are clearly lighter, it&#8217;s pretty obvious that they weight less than a body that normally contains them. (read &#8216;legs&#8217; as &#8216;graphics&#8217; property here)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weekly Shared Items &#8211; 27. October, 2009 &#124; TOXIN LABS - weblog of a german design student from wuerzburg</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-324</link>
		<dc:creator>Weekly Shared Items &#8211; 27. October, 2009 &#124; TOXIN LABS - weblog of a german design student from wuerzburg</dc:creator>
		<pubDate>Tue, 27 Oct 2009 05:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-324</guid>
		<description>[...] Shape vs. Sprite [...]</description>
		<content:encoded><![CDATA[<p>[...] Shape vs. Sprite [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-323</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Mon, 26 Oct 2009 16:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-323</guid>
		<description>You&#039;re very welcome. I too am thinking of adding a &lt;tt&gt;BaseShape&lt;/tt&gt; class to my own framework based on these results. By the way, check out my updated memory findings. It&#039;s not quite double the memory on Windows XP.</description>
		<content:encoded><![CDATA[<p>You&#8217;re very welcome. I too am thinking of adding a <tt>BaseShape</tt> class to my own framework based on these results. By the way, check out my updated memory findings. It&#8217;s not quite double the memory on Windows XP.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

