<?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>Tue, 07 Feb 2012 09:30:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<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>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-322</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Mon, 26 Oct 2009 16:21:34 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-322</guid>
		<description>Thanks for catching this! I&#039;ve updated the memory usage and also added stats for Windows XP. The memory usage is quite different there, but still very heavily in favor of Shapes.</description>
		<content:encoded><![CDATA[<p>Thanks for catching this! I&#8217;ve updated the memory usage and also added stats for Windows XP. The memory usage is quite different there, but still very heavily in favor of Shapes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonnie</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-321</link>
		<dc:creator>Jonnie</dc:creator>
		<pubDate>Mon, 26 Oct 2009 13:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-321</guid>
		<description>I&#039;ve been wanting to run this comparison for quite some time now. In my personal framework, there&#039;s an fSprite class, which is pretty much the base of everything visual. Now, I&#039;ll definitely need to create a similar class using Shape for when I don&#039;t need the extra jazz. It&#039;s always exciting to find a way to cut memory, especially in half! Many thanks, Jackson.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been wanting to run this comparison for quite some time now. In my personal framework, there&#8217;s an fSprite class, which is pretty much the base of everything visual. Now, I&#8217;ll definitely need to create a similar class using Shape for when I don&#8217;t need the extra jazz. It&#8217;s always exciting to find a way to cut memory, especially in half! Many thanks, Jackson.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Og2t</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-320</link>
		<dc:creator>Og2t</dc:creator>
		<pubDate>Mon, 26 Oct 2009 12:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-320</guid>
		<description>To me the main advantage (using less memory) of using Shape than Sprite would when using graphics property together with beginBitmapFill.</description>
		<content:encoded><![CDATA[<p>To me the main advantage (using less memory) of using Shape than Sprite would when using graphics property together with beginBitmapFill.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Altschuler</title>
		<link>http://jacksondunstan.com/articles/401/comment-page-1#comment-319</link>
		<dc:creator>Simon Altschuler</dc:creator>
		<pubDate>Mon, 26 Oct 2009 12:00:04 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=401#comment-319</guid>
		<description>Very interesting, I&#039;m suprised theres no rendering difference! 

btw. I think you switched the memory usage values in the table :-)</description>
		<content:encoded><![CDATA[<p>Very interesting, I&#8217;m suprised theres no rendering difference! </p>
<p>btw. I think you switched the memory usage values in the table :-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

