Mail Archives: djgpp/1998/01/03/04:30:48
From: | "Ashod" <ashod AT ozemail DOT com DOT au>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Allegro putpixel speed ?
|
Date: | 3 Jan 1998 09:14:46 GMT
|
Organization: | OzEmail Ltd.
|
Lines: | 32
|
Message-ID: | <01bd0879$62651a60$bf226ccb@ashod>
|
NNTP-Posting-Host: | 203.108.34.191
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
take this for example // in 8 bit 640 x 480
void test (void)
{
int x;
for(x=0;x<100;x++)
{
putpixel(abmp,x,x,x);
}
}
void test2 (void)
{
int x;
for(x=0;x<100;x++)
{
abmp->line[x][x]=x;
}
}
test2() seems to run much faster than test1 ( sure its direct, but
allegro seems to use its putpixel for other functions too, isnt
that a tad bit slow ? )
Ashod
- Raw text -