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