home *** CD-ROM | disk | FTP | other *** search
- 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
- From: Karsten_Weiss@ibase.stgt.sub.org (Karsten Weiss)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Chunky Pixels vs. Bitplanes (was: Chunky Chip Set...)
- Distribution: world
- Message-ID: <Karsten_Weiss.0oqi@ibase.stgt.sub.org>
- Date: 25 Jan 93 19:56:42 MET
- Organization: Intuition-Base BBS Leonberg
- Lines: 43
-
- In a message dated Mon 25 Jan 93 2:50, Peterk@cbmger.de.so.commodore.com (
- wrote:
-
- P> Yes, but 8 bits per pixel is not the be-all-end-all of all worlds!
- P> There
- P> are many situations where you can very nicely do with fewer bits, say
- P> 5 or 6, and then you are going to waste memory *and* processor cycles
- P> with a chunky architecture. I think it's *not* realistic to caculate
- P> always with an 8-bit case only. (I say "realistic", not "unfair",
- P> because
- P> we want to deal with what comes across us in our dayly needs.)
-
- P> Yes, for n*8 bits/pixel, chunky is in most cases the best option. (I
- P> still
- P> believe there also situations where planar can be better also here.)
- P> If you have some odd number of bits, then I guess the planar structure
- P> has more advantages.
-
- I think there are many examples which proof that you are wrong here. Just
- imagine a simple DrawLine routine (with the processor of course). In planar
- mode you have to do a 'bset' or a 'or' in each plane. In a chunky plane you
- get the different colors for free with only one byte access to the memory.
-
- Another problem we should look at is the fact that most graphic algorithms
- use coordinates. If you use a chunky plane you can use the x-coordinate as
- a offset. In planar mode you first have to calculate the x-byte offset and
- then the correct bit you want to set. All that is much slower compared to
- the same routine made for a chunky plane...
-
- I am sure that nobody can do a faster drawline for a planar screen than for
- a chunky screen - NO MATTER HOW MANY COLORS THE LINE HAS!
-
- L8er,
- Karsten
-
- -- Via DLG Pro v0.995
-
-
- /================================================================\
- | UUCP: Karsten_Weiss@ibase.stgt.sub.org | 'Life Is Ours, |
- | FIDO: 2:2407/106 (Karsten Weiss) | We Live It Our Way' |
- | Voice: +49-(0)7192-8444 | (Metallica) |
- \================================================================/
-