Re: [pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-20 Thread Casey Duncan
This is excellent work, thanks for doing it! One unexpected observation: 06-circle-alpha with colorkey+RLEACCEL is incredibly fast compared to 05-circle-noalpha, I wouldn't have expected that. Can anyone explain why this might be so? Was that actually blitting anything visible? Actually

Re: [pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-20 Thread Ethan Glasser-Camp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Casey Duncan wrote: This is excellent work, thanks for doing it! One unexpected observation: 06-circle-alpha with colorkey+RLEACCEL is incredibly fast compared to 05-circle-noalpha, I wouldn't have expected that. Can anyone explain why this

Re: [pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-19 Thread Ethan Glasser-Camp
Casey Duncan wrote: One thing to note: I think RLEACCEL is highly dependent on the content of the image, and the name implies run-length encoding which implies that images with large areas that are the same color would benefit most. I think it would be useful to run these tests

Re: [pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-16 Thread Ethan Glasser-Camp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ethan Glasser-Camp wrote: Content-Type: image/svg+xml; I have no idea what happened here. I sent a follow-up email to try to rephrase, but it hasn't gone through yet. Maybe it needs to be moderated; it's 107 KB. I've decided to take the attachments

Re: [pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-16 Thread Ethan Glasser-Camp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 DR0ID wrote: Hi always label the axis in a graph! So what does the x-axis mean? And what the y-axis? Thanks for the tests. Sorry, the x-axis is which image it was. Each bar is a different kind of treatment of the image. The y-axis is time

Re: [pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-16 Thread DR0ID
Hi always label the axis in a graph! So what does the x-axis mean? And what the y-axis? Thanks for the tests. ~DR0ID Ethan Glasser-Camp schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ethan Glasser-Camp wrote: Content-Type: image/svg+xml; I have no idea what happened

Re: [pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-16 Thread Ulf Ekström
Could you post the images you use as well? Thanks for a great report! Ulf

Re: [pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-15 Thread Ethan Glasser-Camp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Casey Duncan wrote: So convert_alpha() is a huge win, and RLEACCEL is some icing on the cake. Granted this is just one example image, but I thought it was worth sharing. Great work, thanks! 1) Can I see the code? 2) What about convert() -- this

Re: [pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-15 Thread Casey Duncan
On Sep 15, 2007, at 12:14 AM, Ethan Glasser-Camp wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Casey Duncan wrote: So convert_alpha() is a huge win, and RLEACCEL is some icing on the cake. Granted this is just one example image, but I thought it was worth sharing. Great work,

Re: [pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-15 Thread Ethan Glasser-Camp
Content-Type: image/svg+xml; name=pygame-plots-graph1.svg Content-Transfer-Encoding: base64 Content-Disposition: inline; filename=pygame-plots-graph1.svg PD94bWwgdmVyc2lvbj0iMS4wIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RU

Re: [pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-15 Thread Luke Paireepinart
Huh? Can you rephrase that? -Luke Ethan Glasser-Camp wrote: Content-Type: image/svg+xml; name=pygame-plots-graph1.svg Content-Transfer-Encoding: base64 Content-Disposition: inline; filename=pygame-plots-graph1.svg PD94bWwgdmVyc2lvbj0iMS4wIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RU

[pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-14 Thread Casey Duncan
Just for grins I did some benchmarking on using convert_alpha() and RLEACCEL. These are blitting a 32bpp 70x70 surface with per pixel alpha on a 2GHz MacBook pro with pygame 1.7 and SDL 1.2.11. I used the python timeit module, and blitted the image 100k times on an 800x600 32bpp SW screen