<?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: AVM2 Performance &#8211; Sprite Alpha vs. Fill Alpha</title>
	<atom:link href="http://shaun.boyblack.co.za/blog/2008/02/17/avm2-performance-sprite-alpha-vs-fill-alpha/feed/" rel="self" type="application/rss+xml" />
	<link>http://shaun.boyblack.co.za/blog/2008/02/17/avm2-performance-sprite-alpha-vs-fill-alpha/</link>
	<description>Flex, Ruby, Mongo - London, UK</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:52:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Rigard</title>
		<link>http://shaun.boyblack.co.za/blog/2008/02/17/avm2-performance-sprite-alpha-vs-fill-alpha/comment-page-1/#comment-8608</link>
		<dc:creator>Rigard</dc:creator>
		<pubDate>Sat, 17 Oct 2009 10:05:47 +0000</pubDate>
		<guid isPermaLink="false">http://shaun.boyblack.co.za/blog/2008/02/17/avm2-performance-sprite-alpha-vs-fill-alpha/#comment-8608</guid>
		<description>Well doing something along these lines and changing the values of the fill and the sprite alpha didn&#039;t give me a significant time difference between the two.&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;			var time:Number = getTimer();&lt;br&gt;			trace(time);&lt;br&gt;			&lt;br&gt;			for (var i:uint = 0; i &lt; 1000; i++) {&lt;br&gt;				var spr:Sprite = new Sprite();&lt;br&gt;				spr.graphics.beginFill(0x000000, .5);&lt;br&gt;				spr.graphics.drawRect(0, 0, 100, 100);&lt;br&gt;				spr.graphics.endFill();&lt;br&gt;				//spr.alpha = 1;&lt;br&gt;				addChild(spr);&lt;br&gt;			}&lt;br&gt;			&lt;br&gt;			time = getTimer();&lt;br&gt;			trace(time);&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;You got some other kind of rendering in mind - over bitmaps or something like that? Or maybe while they&#039;re moving. I don&#039;t think it makes much difference.</description>
		<content:encoded><![CDATA[<p>Well doing something along these lines and changing the values of the fill and the sprite alpha didn&#39;t give me a significant time difference between the two.</p>
<p>[code]<br />			var time:Number = getTimer();<br />			trace(time);</p>
<p>			for (var i:uint = 0; i &lt; 1000; i++) {<br />				var spr:Sprite = new Sprite();<br />				spr.graphics.beginFill(0x000000, .5);<br />				spr.graphics.drawRect(0, 0, 100, 100);<br />				spr.graphics.endFill();<br />				//spr.alpha = 1;<br />				addChild(spr);<br />			}</p>
<p>			time = getTimer();<br />			trace(time);<br />[/code]</p>
<p>You got some other kind of rendering in mind &#8211; over bitmaps or something like that? Or maybe while they&#39;re moving. I don&#39;t think it makes much difference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rigard</title>
		<link>http://shaun.boyblack.co.za/blog/2008/02/17/avm2-performance-sprite-alpha-vs-fill-alpha/comment-page-1/#comment-8</link>
		<dc:creator>Rigard</dc:creator>
		<pubDate>Fri, 14 Mar 2008 12:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://shaun.boyblack.co.za/blog/2008/02/17/avm2-performance-sprite-alpha-vs-fill-alpha/#comment-8</guid>
		<description>Well doing something along these lines and changing the values of the fill and the sprite alpha didn&#039;t give me a significant time difference between the two.

[code]
			var time:Number = getTimer();
			trace(time);
			
			for (var i:uint = 0; i &lt; 1000; i++) {
				var spr:Sprite = new Sprite();
				spr.graphics.beginFill(0x000000, .5);
				spr.graphics.drawRect(0, 0, 100, 100);
				spr.graphics.endFill();
				//spr.alpha = 1;
				addChild(spr);
			}
			
			time = getTimer();
			trace(time);
[/code]

You got some other kind of rendering in mind - over bitmaps or something like that? Or maybe while they&#039;re moving. I don&#039;t think it makes much difference.</description>
		<content:encoded><![CDATA[<p>Well doing something along these lines and changing the values of the fill and the sprite alpha didn&#8217;t give me a significant time difference between the two.</p>
<p>[code]<br />
			var time:Number = getTimer();<br />
			trace(time);</p>
<p>			for (var i:uint = 0; i &lt; 1000; i++) {<br />
				var spr:Sprite = new Sprite();<br />
				spr.graphics.beginFill(0x000000, .5);<br />
				spr.graphics.drawRect(0, 0, 100, 100);<br />
				spr.graphics.endFill();<br />
				//spr.alpha = 1;<br />
				addChild(spr);<br />
			}</p>
<p>			time = getTimer();<br />
			trace(time);<br />
[/code]</p>
<p>You got some other kind of rendering in mind &#8211; over bitmaps or something like that? Or maybe while they&#8217;re moving. I don&#8217;t think it makes much difference.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

