From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Fastiest code to blit to scscreen? Date: Wed, 18 Jun 1997 22:13:39 +0100 Organization: None Distribution: world Message-ID: References: <5o94qq$m6l$1 AT unix2 DOT glink DOT net DOT hk> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 20 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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.