home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17834 < prev    next >
Encoding:
Text File  |  1992-12-27  |  2.3 KB  |  46 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. 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
  3. From: mlelstv@specklec.mpifr-bonn.mpg.de (Michael van Elst)
  4. Subject: Re: Chunky Pixel Mode for Low End Chip Set?
  5. Message-ID: <1992Dec27.155756.23491@mpifr-bonn.mpg.de>
  6. Sender: news@mpifr-bonn.mpg.de
  7. Nntp-Posting-Host: specklec
  8. Organization: Max-Planck-Institut f"ur Radioastronomie
  9. 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>
  10. Date: Sun, 27 Dec 1992 15:57:56 GMT
  11. Lines: 33
  12.  
  13. In <jbickers.0m50@templar.actrix.gen.nz> jbickers@templar.actrix.gen.nz (John Bickers) writes:
  14. >    This isn't always the case. For example, if you want to replace
  15. >    all the blue pixels with red pixels in order to free up a color
  16. >    slot, etc.
  17.  
  18. Then you don't do this directly in display memory. Or use some blitter
  19. function to generate a mask and then change the pixels through the mask.
  20.  
  21. Of course, a more sophisticated algorithm might free more color slots
  22. in one operation (where do you need exactly one color slot ?).
  23.  
  24. >    Who said anything about calling WritePixel()? Though with chunky
  25. >    pixels WritePixel() should be faster, making use of such OS
  26. >    routines more acceptable, which is a plus for RTG.
  27.  
  28. WritePixel wouldn't be much faster with chunky pixels. The large overhead
  29. comes from clipping and calculating bitplane/bitmap addresses.
  30.  
  31. >    I do not believe this is the case. BTW, some other examples of
  32. >    where chunky pixels can be quicker is flood fills, or CPU drawing
  33. >    like lines or curves, where the main element is the equivalent of
  34. >    a WritePixel().
  35.  
  36. Yep, drawing thin lines is a plus on chunky pixel architectures. Floodfills
  37. on the other hand can be faster with bitplanes. Not sure about curve drawing
  38. but most curve drawing routines I know need several multiplications per point.
  39.  
  40. Regards,
  41. -- 
  42. Michael van Elst
  43. UUCP:     universe!local-cluster!milky-way!sol!earth!uunet!unido!mpirbn!p554mve
  44. Internet: p554mve@mpirbn.mpifr-bonn.mpg.de
  45.                                 "A potential Snark may lurk in every tree."
  46.