home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19208 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  2.4 KB

  1. Path: sparky!uunet!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!news.netmbx.de!Germany.EU.net!ira.uka.de!smurf.sub.org!nadia!amylnd!ibase!Karsten_Weiss
  2. From: Karsten_Weiss@ibase.stgt.sub.org (Karsten Weiss)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Chunky Pixels vs. Bitplanes (was: Chunky Chip Set...)
  5. Distribution: world
  6. Message-ID: <Karsten_Weiss.0oqi@ibase.stgt.sub.org>
  7. Date: 25 Jan 93 19:56:42 MET
  8. Organization: Intuition-Base BBS Leonberg
  9. Lines: 43
  10.  
  11. In a message dated Mon 25 Jan 93  2:50, Peterk@cbmger.de.so.commodore.com (
  12. wrote:
  13.  
  14.  P> Yes, but 8 bits per pixel is not the be-all-end-all of all worlds!
  15.  P> There
  16.  P> are many situations where you can very nicely do with fewer bits, say
  17.  P> 5 or 6, and then you are going to waste memory *and* processor cycles
  18.  P> with a chunky architecture. I think it's *not* realistic to caculate
  19.  P> always with an 8-bit case only. (I say "realistic", not "unfair",
  20.  P> because
  21.  P> we want to deal with what comes across us in our dayly needs.)
  22.  
  23.  P> Yes, for n*8 bits/pixel, chunky is in most cases the best option. (I
  24.  P> still
  25.  P> believe there also situations where planar can be better also here.)
  26.  P> If you have some odd number of bits, then I guess the planar structure
  27.  P> has more advantages.
  28.  
  29. I think there are many examples which proof that you are wrong here. Just
  30. imagine a simple DrawLine routine (with the processor of course). In planar
  31. mode you have to do a 'bset' or a 'or' in each plane. In a chunky plane you
  32. get the different colors for free with only one byte access to the memory.
  33.  
  34. Another problem we should look at is the fact that most graphic algorithms
  35. use coordinates. If you use a chunky plane you can use the x-coordinate as
  36. a offset. In planar mode you first have to calculate the x-byte offset and
  37. then the correct bit you want to set. All that is much slower compared to
  38. the same routine made for a chunky plane...
  39.  
  40. I am sure that nobody can do a faster drawline for a planar screen than for
  41. a chunky screen - NO MATTER HOW MANY COLORS THE LINE HAS!
  42.  
  43.                                         L8er,
  44.                                              Karsten
  45.  
  46. -- Via DLG Pro v0.995
  47.  
  48.  
  49. /================================================================\
  50. | UUCP:  Karsten_Weiss@ibase.stgt.sub.org | 'Life Is Ours,       |
  51. | FIDO:  2:2407/106 (Karsten Weiss)       |  We Live It Our Way' |
  52. | Voice: +49-(0)7192-8444                 |          (Metallica) |
  53. \================================================================/
  54.