home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!rpi!usc!elroy.jpl.nasa.gov!decwrl!netcomsv!netcomsv!telco-nac.com!telco-nac.com!not-for-mail
- From: dave@telco-nac.com (David Cornejo)
- Newsgroups: comp.graphics
- Subject: Re: 256 color faster than 16 color ...why?
- Date: 26 Jan 1993 15:57:01 -0800
- Organization: Telco Systems NAC, Fremont, CA
- Lines: 34
- Message-ID: <1k4j4dINNoo5@hobbes.telco-nac.com>
- References: <C1FvJp.Hw9@acsu.buffalo.edu>
- NNTP-Posting-Host: hobbes.telco-nac.com
-
- In article <C1FvJp.Hw9@acsu.buffalo.edu> tef@acsu.buffalo.edu (Tom Frisinger) writes:
- >Hello,
- > I've done some tests and found out that 256 is indeed much faster
- >than 16 color at the same resolution. Why is this? I tested
- >320x200x16 vs. 320x200x256, and 640x480x16 vs. 640x480x256, and
- >800x600x16 vs. 800x600x256. I figure that that covered all the
- >memory ranges pretty well. The 256 color out performed the 16 color
- >by anywhere from 10%-40%!!! The only possible explantion I can
- >think of is that with 256 color they can to fast byte operations on
- >memory vs. messing around with 4bits and shifting and all that. Is
- >this theory at all on the right track?
- >Thanks for the help.
- >
- > Tom Frisinger
- > tef@acsu.buffalo.edu
-
- I believe this is right or at least on the right track...
-
- In 16 color mode, the video memory is organized as 4 planes of 1 bit each,
- requiring a lot of diddling of I/O ports & masks before you output the pixel.
- Even when you write the pixel, you're not actually writing to the video
- memory - the card has to jump through some hoops to write it to the memory
- for you. In 256 color mode, I believe that you have direct (or at least
- fast buffered) access to flat video memory. Michael Abrash (I hope that's
- correct) covers this frequently in his column in Dr Dobbs, so you can check
- back issues for a better explanation (I'm doing this from memory). I think
- he has a book or a set of article reprints available too.
-
-
-
- --
- Dave Cornejo, Telco Systems NAC voice 510.490.3111
- 4305 Cushing Parkway ext 5158
- Fremont, CA 94538 FAX 510.490.9396
-