home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.ibm.pc.hardware:30734 comp.sys.ibm.pc.misc:14943
- Newsgroups: comp.sys.ibm.pc.hardware,comp.sys.ibm.pc.misc
- 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
- From: rnichols@cbnewsg.cb.att.com (robert.k.nichols)
- Subject: Re: Graphics Accelerator Cards
- Message-ID: <1992Nov24.015612.27184@cbfsb.cb.att.com>
- Sender: news@cbfsb.cb.att.com
- Organization: AT&T
- References: <1992Nov17.213906.504@cbnewsh.cb.att.com> <1992Nov19.094530.5007@news.uni-stuttgart.de> <1992Nov23.131945.8943@iscsvax.uni.edu>
- Date: Tue, 24 Nov 1992 01:56:12 GMT
- Lines: 26
-
- In article <1992Nov23.131945.8943@iscsvax.uni.edu> eadie5295@iscsvax.uni.edu writes:
- ...(Quoted article deleted)...
- > On the contrary, reducing colors from 256 to 16 reduces the number of
- >possible colors by 16, but will reduce the number of bits/pixel by a factor of
- >only 2 (8-bits vs 4-bits per pixel).
- ...
-
- Actually, it's a bit more complex (and potentially better) than that.
- A VGA card in 256-color mode uses a simple 1-byte-per-pixel mapping in
- the (paged) video memory space. When you switch to 16-color mode, the
- memory is arranged as 4 separate bitplanes, so that a 1-byte access
- gets you 1 bit from each of 8 pixels. Now this can be a real pain if
- you're trying to update all 4 bits for each pixel. However, for things
- like text scrolling, all you're trying to do is switch pixel colors
- between the foreground color and the background color. A good text
- scrolling program will arrange the pallette such that the foreground
- and background colors differ in only one bitplane. Thus, the program
- can work within a single bitplane and manipulate 8 (or even 16) pixels
- with each video memory access. This yields a 8-to-1 speedup over the
- 256-color mode.
-
- Of course, this all breaks down if you're displaying multi-colored text.
-
- Bob Nichols
- AT&T Bell Laboratories
- rnichols@ihlpm.ih.att.com
-