[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Wed, 2005-01-26 at 20:29 +0100, Milan Mimica wrote:
> Hi everyone!
>
> Have you ever worried about:
> memset(bmp->line[0], 0, bitmap_color_depth(bmp) / 8 * 800 * 600);
> beeing faster (~20%) than clear_bitmap(bmp)? What do yout think about
> modifying clear_bitmap() to see if the argument is truecolor memory
> bitmap and then use memset?
>
> And there is another little thing: the X graphics driver should be
> called GFX_XWINDOW, not GFX_XWINDOWS, if anyone cares about it.
>
Hm, I guess, memset() makes use of special asm instructions which
allegro's clear does not, or something. Can you post a simple test
program which compares the two, and if possible, a patch which does the
change - so the old vs. new clear_bitmap could be directly compared.
--
Elias Pschernig