<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>blit vs draw_sprite</title>
		<link>http://www.allegro.cc/forums/view/524101</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 30 Aug 2005 01:21:50 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Someday I read in this forum or in another that draw_sprite works faster than blit.</p><p>I like to know if this is really true and if it is, why? </p><p>In my mind, if draw_sprite has the preoccupation with transparency, it need to be slowly.</p><p>Thanx <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Daniel Stori)</author>
		<pubDate>Mon, 29 Aug 2005 23:46:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>hmm, you should test it if it&#39;s true and let us know
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (clovekx)</author>
		<pubDate>Mon, 29 Aug 2005 23:51:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yes, draw_sprite is probably a little bit faster than blit, but if you compare draw_sprite with masked_blit, there shouldn&#39;t be much difference.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miran)</author>
		<pubDate>Mon, 29 Aug 2005 23:51:31 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>so masked_blit is faster than normal blit?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (clovekx)</author>
		<pubDate>Mon, 29 Aug 2005 23:55:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Let&#39;s see ...<br /><a href="http://www.allegro.cc/forums/view_thread.php?_id=477775#target">http://www.allegro.cc/forums/view_thread.php?_id=477775#target</a></p><p>It seems like blit is faster than draw_sprite, at least on P4 that is</p><p>Of cource draw_rle_sprite in C-only and 32/16 bit would be about twice as fast, compiled sprite ~4x faster than plain blit <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (HoHo)</author>
		<pubDate>Mon, 29 Aug 2005 23:56:45 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Bleh, typo, I meant the other way around. Normal blit should be a little faster than draw_sprite and masked_blit. At least that&#39;s what common sense dictates...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miran)</author>
		<pubDate>Mon, 29 Aug 2005 23:57:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Bleh, typo, I meant the other way around. Normal blit should be a little faster than draw_sprite and masked_blit. At least that&#39;s what common sense dictates...
</p></div></div><p>
If we&#39;re talking about draw_sprite such that it has exactly the same effect as blit (i.e. drawing a sprite with no transparent sections) then I would imagine they&#39;d be the same speed, as if the CPU is doing them then the bottleneck is the memory bandwidth. Conversely if the graphics card is doing them then I would imagine they&#39;d be the same speed as a natural effect of the way hardware is implemented for these things.</p><p>If however the sprite is &#39;substantially&#39; smaller than the area of the bitmap containing it, I would expect draw_sprite to overtake blit for the same bottleneck reason as above.</p><p>What do the empirical results show?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Harte)</author>
		<pubDate>Tue, 30 Aug 2005 01:21:50 +0000</pubDate>
	</item>
</rss>
