Mail Archives: djgpp/1997/06/19/05:22:05
Thomas Lai writes:
> Any nice guy has code to blit a whole BITMAP (same dim as screen)
> to the screen fastiest using Allegro?
blit(bmp, screen, 0, 0, 0, 0, SCREEN_W, SCREEN_H);
> I have an idea:
> 1) if the memory of the lines of a memory BITMAP is
> continuous
> 2) the screen is in banked SVGA
> 3) copy the memory BITMAP to the screen using long move
> with minimum bank switches
Exactly. That, if you look at the sources, is almost exactly what blit()
does!
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
- Raw text -