home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / ibm / pc / hardware / 30734 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  1.9 KB

  1. Xref: sparky comp.sys.ibm.pc.hardware:30734 comp.sys.ibm.pc.misc:14943
  2. Newsgroups: comp.sys.ibm.pc.hardware,comp.sys.ibm.pc.misc
  3. Path: sparky!uunet!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewse!cbnewsd!att-out!cbfsb!cbnewsg.cb.att.com!rnichols
  4. From: rnichols@cbnewsg.cb.att.com (robert.k.nichols)
  5. Subject: Re: Graphics Accelerator Cards
  6. Message-ID: <1992Nov24.015612.27184@cbfsb.cb.att.com>
  7. Sender: news@cbfsb.cb.att.com
  8. Organization: AT&T
  9. References: <1992Nov17.213906.504@cbnewsh.cb.att.com> <1992Nov19.094530.5007@news.uni-stuttgart.de> <1992Nov23.131945.8943@iscsvax.uni.edu>
  10. Date: Tue, 24 Nov 1992 01:56:12 GMT
  11. Lines: 26
  12.  
  13. In article <1992Nov23.131945.8943@iscsvax.uni.edu> eadie5295@iscsvax.uni.edu writes:
  14. ...(Quoted article deleted)...
  15. >  On the contrary, reducing colors from 256 to 16 reduces the number of
  16. >possible colors by 16, but will reduce the number of bits/pixel by a factor of
  17. >only 2 (8-bits vs 4-bits per pixel).
  18. ...
  19.  
  20. Actually, it's a bit more complex (and potentially better) than that.
  21. A VGA card in 256-color mode uses a simple 1-byte-per-pixel mapping in
  22. the (paged) video memory space.  When you switch to 16-color mode, the
  23. memory is arranged as 4 separate bitplanes, so that a 1-byte access
  24. gets you 1 bit from each of 8 pixels.  Now this can be a real pain if
  25. you're trying to update all 4 bits for each pixel.  However, for things
  26. like text scrolling, all you're trying to do is switch pixel colors
  27. between the foreground color and the background color.  A good text
  28. scrolling program will arrange the pallette such that the foreground
  29. and background colors differ in only one bitplane.  Thus, the program
  30. can work within a single bitplane and manipulate 8 (or even 16) pixels
  31. with each video memory access.  This yields a 8-to-1 speedup over the
  32. 256-color mode.
  33.  
  34. Of course, this all breaks down if you're displaying multi-colored text.
  35.  
  36. Bob Nichols
  37. AT&T Bell Laboratories
  38. rnichols@ihlpm.ih.att.com
  39.