home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / alt / sys / amiga / demos / 1962 < prev    next >
Encoding:
Text File  |  1992-12-12  |  1.4 KB  |  40 lines

  1. Newsgroups: alt.sys.amiga.demos
  2. Path: sparky!uunet!psinntp!viper!news
  3. From: brett@visix.com (Brett Bourbin)
  4. Subject: Re: Demo Utils
  5. Sender: news@visix.com
  6. Message-ID: <Bz3r88.9vH@visix.com>
  7. Date: Fri, 11 Dec 1992 16:02:31 GMT
  8. Reply-To: brett@visix.com
  9. References: <2077@lysator.liu.se>
  10. Organization: Visix Software, Reston, Virginia
  11. Lines: 27
  12.  
  13. In article <2077@lysator.liu.se> marvil@lysator.liu.se (Martin Vilcans)  
  14. writes:
  15. >   And now, a question... What's wrong with clearing the screen using the
  16. > blitter? I usually do it this way:
  17. >   move.l #picture,BLTDPTR(a6)
  18. >   move   #0,BLTDMOD(a6)
  19. >   move.l #$01000000,BLTCON0(a6)
  20. >   move   #h<<6+w>>1,BLTSIZE(a6)
  21. > ....is this illegal or something?
  22.  
  23. First, I hope you are in BLITTER_NASTY mode, or you should be checking if  
  24. a blit is taking place, before you modify any of the Blitter registers.
  25.  
  26. Next, you know that you are only clearing "h" WORDs. I don't know if you  
  27. have "h" to mean "height" in pixels (which is wrong). Remember that the  
  28. Blitter (non-ECS) can only clear 128K per blit. I use a similar approach  
  29. in my kernBlitClearMemory kernel call, except that I clear in 128K chunks,  
  30. until I have less than 128K left, and do a smaller blit.
  31.  
  32. > Martin Vilcans  marvil@lysator.liu.se
  33.  
  34. --                   __
  35. Brett Bourbin        \  / /(_  /\/  11440 Commerce Park Drive
  36.   brett@visix.com     \/ / __)/ /\  Reston, Virginia 22091
  37.   ..uupsi!visix!brett     Software Inc  703.758.8230
  38.