Mail Archives: djgpp/1998/01/13/14:18:04
From: | qball1723 AT aol DOT com (QBall1723)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Allegro putpixel speed ?
|
Date: | 13 Jan 1998 15:21:18 GMT
|
Lines: | 35
|
Message-ID: | <19980113152101.KAA10594@ladder01.news.aol.com>
|
NNTP-Posting-Host: | ladder01.news.aol.com
|
Organization: | AOL http://www.aol.com
|
References: | <01bd0879$62651a60$bf226ccb AT ashod>
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
>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;
>}
>}
Of course test2 would be faster.... but you're only talking about system memory
& putpixel - what if you were talking a screen... that may be linear... may be
planar... may be bank switching...?
Flexibility sometimes does have a price... it's up to you where you might want
to work AROUND something Allegro does... rather than WITH it...
Jim the loiterer (wannabe PC game/graphics developer)
http://members.aol.com/qball1723/index.htm
[please don't hate me because I pay too much for poor internet service!!]
- Raw text -