home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!fischerj
- From: fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Demo/game to OS friendly part II
- Date: 12 Jan 1996 19:28:57 GMT
- Organization: Technische Universitaet Muenchen, Germany
- Distribution: world
- Message-ID: <4d6cpp$iu2@sunsystem5.informatik.tu-muenchen.de>
- References: <john.hendrikx.44c8@grafix.xs4all.nl> <38231915@kone.fipnet.fi>
- NNTP-Posting-Host: hphalle8a.informatik.tu-muenchen.de
- Originator: fischerj@hphalle8a.informatik.tu-muenchen.de
-
-
- In article <38231915@kone.fipnet.fi>, "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi> writes:
- |>
- |> > Forget ScrollVPort(), I tried it and I found that even on Kick 3.0 the
- |> > display sometimes 'flashes' (ie, the Copper Pointers were wrong for
- |> >á1 frame). Use the 3.0 Intuition/ChangeScreenBuffer() function instead.
- |> >áIt works great (I dunno how fast it is but it seems pretty fast)
- |>
- |> Ok. What routine should be used for CyberGraphX?
-
- well seems that OS3 buffering works bets for both AGA and gfx-cards.
- just blitterc2p to the aga screens and writepixelarray8 to the gfx-screens.
-
- non 1x1 modi however get either slow (both AGA & gfx-card) or if you
- optimize (AGA only) you seem to need special copperlists, and it
- doesn't work correct with all monitors (so AGA PAL/NTSC only).
-
- well, make 1x2 is just copying a line.
-
- fastest code to make 2x1 with cpu ?
-
- a try for 020 in fastmem:
-
- move.l (a0)+,d0
- movep.l d0,(a1)+ ;destination really should not be chipmem
-
- this will also give ghost look ;)
-
-
- move.w (a0)+,d0
-
- move.b d0,d1 : lsl.l #8,d1 : move.b d0,d1
- move.w d0,d2 : lsl.l #8,d2 : move.w d0,d2 : lsr.l #8,d2
-
- swap d2 : move.w d1,d2 : move.l d2,(a1)+
-
- :\
-
- 17 cyc/pix if you manage to use the free cycles of (a1)+
-
- move.b (a0)+,d0
- move.b d0,d1 : lsl.w #8,d1 : move.b d0,d1
- move.w d1,(a1)+
-
- 16 cyc/pix if using free cyc.
-
- :\
-
- move.b (a0)+,(a7)+
-
- 6cycles/pix, ghost look :)
-
- A 030-25 will need more time making up a 2x2 scren on gfx-card than a
- 020-14 copying to AGA 2x2 modi!
-
- An alternative could be a changed texture mapper storing words,
- but it's annouying to write each gfx-routine 2 times, and source
- bitmap only could hold 128x256 pix :\\
-
- |>
- |> -- _
- |> a Stellar programmer _ //
- |> "Amiga - back for the future" \X/
- ------------------------------------------------------------------------
- fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) =:)
-
-