home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!darwin.sura.net!newsserver.jvnc.net!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!dkuug!diku!torbenm
- From: torbenm@diku.dk (Torben AEgidius Mogensen)
- Newsgroups: comp.graphics
- Subject: Re: 256 color faster than 16 color ...why?
- Message-ID: <1993Jan26.104741.13453@odin.diku.dk>
- Date: 26 Jan 93 10:47:41 GMT
- References: <C1FvJp.Hw9@acsu.buffalo.edu>
- Sender: torbenm@tyr.diku.dk
- Organization: Department of Computer Science, U of Copenhagen
- Lines: 21
-
- 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?
-
- You haven't specified what system you ran the tests on and which
- operations you tried. But, yes, I do believe your theory is right.
- Operations that require access to individual pixels (e.g.
- line-drawing) will be sped up if you can avoid masking operations at
- every step. Bitmap moves etc. will usually be faster with 4bpp than
- 8bpp, as masking needs only be done at the edges.
-
- Torben Mogensen (torbenm@diku.dk)
-