home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!spool.mu.edu!yale.edu!ira.uka.de!Sirius.dfn.de!rrz.uni-koeln.de!Germany.EU.net!mpifr-bonn.mpg.de!specklec.mpifr-bonn.mpg.de!mlelstv
- From: mlelstv@specklec.mpifr-bonn.mpg.de (Michael van Elst)
- Subject: Re: Chunky Pixels vs. Bitplanes (was: Chunky Chip Set...)
- Message-ID: <1993Jan4.031543.18522@mpifr-bonn.mpg.de>
- Sender: news@mpifr-bonn.mpg.de
- Nntp-Posting-Host: specklec
- Organization: Max-Planck-Institut f"ur Radioastronomie
- References: <Karsten_Weiss.0n2o@ibase.stgt.sub.org> <1hbngoINNglt@uwm.edu> <1993Jan3.204843.15155@mpifr-bonn.mpg.de> <doiron.0kmz@starpt.UUCP>
- Date: Mon, 4 Jan 1993 03:15:43 GMT
- Lines: 49
-
- In <doiron.0kmz@starpt.UUCP> doiron@starpt.UUCP (Glenn Doiron) writes:
- >This is a *general purpose* scaling algorithm. It uses no predefined
- >tables.
-
- Correct. It also makes the effect of chunky vs. bitplane quite invisible.
- It is however not the preferred method. If the rectangles in question
- are large enough it is faster to precalculate the tables and use them.
-
- >The rendering is a small fraction on the chunky system, however getpixel()
- >and putpixel() on a planar system may even take *more* time than the
- >multiplications due to the time needed to ([shift/mask/extract]x8) then
- >([shift/mask/insert]x8) do those operations in planar.
-
- Hardly. You forget the time needed to calculate pointers from x,y
- coordinates.
-
- >It's a general purpose algorithm that will scale/rotate bitmapped images.
- >It suffers no limitations unlike your precalculated table.
-
- And it is not used when performance is an issue.
-
- >I can assure you that on a chunky display, that will be the case. On a
- >planar display, that is a different story entirely.
-
- While it is different the overhead isn't that high.
-
- >Notice how **NO** processors support parallel operations on several
- >arbitrary bits at different memory locations. Even if there were there
- >would still be overhead due to the extra data accessed that wasn't even
- >considered.
-
- You don't need to do operations on several arbitrary bits at different
- memory locations in parallel. And, for many things, you don't even
- work on single bits because you do not handle a pixel at a time.
-
- >Suppose you have a blit that takes 20ms on chunky and 30ms on planar
- >(planar is accessing 1/3 more data than neccessary) on a 256 color display.
- >Jump up the pixel depth to true-color (32-bit), and you're suddenly wasting
- >4x as much time, since now it's taking 80ms on chunky and 120ms on planar.
- >Still in a 2:3 ratio, but your time wasted has jumped from 10ms to 40ms.
-
- Still don't see your point here.
-
- Regards,
- --
- Michael van Elst
- UUCP: universe!local-cluster!milky-way!sol!earth!uunet!unido!mpirbn!p554mve
- Internet: p554mve@mpirbn.mpifr-bonn.mpg.de
- "A potential Snark may lurk in every tree."
-