Re: [AD] minor issues

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Milan Mimica a écrit :
> Julien Cugnière wrote:
> > What would really be an improvement is if memcpy was faster than blit...
> > who knows :-)
>
> hehe, I do. memcpy is *much* faster that draw_sprite for 24-bit bitmaps.
> Ratio of sums of 3 consecutive test:
>
>      draw_sprite            memcpy
> (5.155+5.145+5.155) / (2.63+2.655+2.7) = 0.5166
>
> Other color depths favor draw_sprite. This realy make you think...

Unfortunately, this comparison is unfair, as draw_sprite skips transparent 
pixels, whereas memcpy does not :-) You should really compare with blit; I 
just tried, and on my AthlonXP, I get nearly identical times for blit and 
memcpy... too bad!

-- 
Julien Cugnière




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/