Mail Archives: djgpp/1997/11/16/05:17:40
From: | ovek AT arcticnet DOT no (Ove Kaaven)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Text Routines in DJGPP
|
Date: | Sun, 16 Nov 1997 07:58:41 GMT
|
Organization: | Arctic Net AS
|
Lines: | 12
|
Message-ID: | <346e8c82.47701044@news.arcticnet.no>
|
References: | <64j7pg$292$1 AT news1 DOT worldchat DOT com>
|
NNTP-Posting-Host: | alwayscold.darkness.arcticnet.no
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Brian Hogg <bhogg AT worldchat DOT com> wrote:
>Anyone familiar with QBASIC and PowerBASIC knows that the routines are
>extremely fast, you could fill the screen up with text chars one by one
>and you wouldn't tell. Functions like cprintf() are too slow and
>maybe it's something I'm doing but it should be optimized... how big
>of a difference does the -O2 -O3 -O make to these routines?
cprintf() has to parse its input with sprintf() for all those %
formats etc, so naturally it's not too fast in filling up the screen.
Try cputs(), putch(), ScreenPutString(), etc instead.
"info libc func conio" should provide what you need.
- Raw text -