home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!utcsri!torn!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 Pixel Mode for Low End Chip Set?
- Message-ID: <1992Dec27.155756.23491@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> <jbickers.0m2n@templar.actrix.gen.nz> <72410@cup.portal.com> <1992Dec26.170503.14668@mpifr-bonn.mpg.de> <jbickers.0m3z@templar.actrix.gen.nz><1992Dec27.011313.18163@mpifr-bonn.mpg.de> <jbickers.0m50@templar.actrix.gen.nz>
- Date: Sun, 27 Dec 1992 15:57:56 GMT
- Lines: 33
-
- In <jbickers.0m50@templar.actrix.gen.nz> jbickers@templar.actrix.gen.nz (John Bickers) writes:
- > This isn't always the case. For example, if you want to replace
- > all the blue pixels with red pixels in order to free up a color
- > slot, etc.
-
- Then you don't do this directly in display memory. Or use some blitter
- function to generate a mask and then change the pixels through the mask.
-
- Of course, a more sophisticated algorithm might free more color slots
- in one operation (where do you need exactly one color slot ?).
-
- > Who said anything about calling WritePixel()? Though with chunky
- > pixels WritePixel() should be faster, making use of such OS
- > routines more acceptable, which is a plus for RTG.
-
- WritePixel wouldn't be much faster with chunky pixels. The large overhead
- comes from clipping and calculating bitplane/bitmap addresses.
-
- > I do not believe this is the case. BTW, some other examples of
- > where chunky pixels can be quicker is flood fills, or CPU drawing
- > like lines or curves, where the main element is the equivalent of
- > a WritePixel().
-
- Yep, drawing thin lines is a plus on chunky pixel architectures. Floodfills
- on the other hand can be faster with bitplanes. Not sure about curve drawing
- but most curve drawing routines I know need several multiplications per point.
-
- 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."
-