Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fastest running SCREEN
#1
Recently, a friend from Australia presented a request for help in creating five-line-high numbers.

During my research into this, I found that, running the same, identical program, based exclusively on the standard 128 ASCII characters and the additional 128 IBM Extended Character Set, which SCREEN 0 uses with no trouble, while the other SCREENs reuired from 53 (SCREEN 2) to 797 (Screen 13) times as much time to run! Wow!, that shook me, and made me a believer in the high speed of SCREEN 0, as compared to the graphics screens.

Recomendation: For all programs where speed is of the escence, try to use SCREEN 0, if at all possible. Some "graphics" can be done with the 256 ASCII-type characters available in QuickBASIC. And, if graphics are absolutely required, then, if possible, use the SCREENs in this order, for maximum speed:
__________RELATIVE__________RELATIVE
.....SCREEN---SPEED____SCREEN---SPEED
..........0----------1...................0---------1
..........2--------53...................1-------218
........11--------89....................2--------53
........12--------89....................7------246
..........8------120....................8------120
..........9------182....................9------182
........10------182..................10------182
..........1------218..................11--------89
..........7------246..................12--------89
........13------797..................13------797
The above relative speeds are not set in concrete, and, different programming will undoubtly produce different results, but, the above results call for intensive testing with different SCREENs, if at all possible, when speed is of prime importance.
Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
Reply
#2
These results makes sense when you consider the memory structure of text mode compared with graphical modes (especially the old layered ega and vga modes). On top of that, Qbasic and Quick Basic rely almost entirely on DOS and BIOS services for printing characters.
Reply
#3
Quote:Recently, a friend from Australia presented a request for help in creating five-line-high numbers.

It wasn't me...
Screwing with your reality since 1998.
Reply
#4
Anarky:

No! And, to stop all such possible posts for other Austrailinans, I'll say who it was: it was Jan van Pol.
Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
Reply
#5
Come on Ralph, spelling is also a programming strength.
Quote:Austrailinans
Australians

and

Quote: Jan van Pol.
Jan van de Poll
t is the End result that matters, not the Tools used to get there.
Reply
#6
Dinosaur:

Thank you for correcting my wrong use of Jan's name. :oops:

As to the misspelling of the word, Australians, I know better. I apologize for not checking myself carefully.
Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)