home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 939 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.4 KB  |  79 lines

  1. Path: informatik.tu-muenchen.de!fischerj
  2. From: fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Demo/game to OS friendly part II
  5. Date: 12 Jan 1996 19:28:57 GMT
  6. Organization: Technische Universitaet Muenchen, Germany
  7. Distribution: world
  8. Message-ID: <4d6cpp$iu2@sunsystem5.informatik.tu-muenchen.de>
  9. References: <john.hendrikx.44c8@grafix.xs4all.nl> <38231915@kone.fipnet.fi>
  10. NNTP-Posting-Host: hphalle8a.informatik.tu-muenchen.de
  11. Originator: fischerj@hphalle8a.informatik.tu-muenchen.de
  12.  
  13.  
  14. In article <38231915@kone.fipnet.fi>, "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi> writes:
  15. |> 
  16. |> > Forget ScrollVPort(), I tried it and I found that even on Kick 3.0 the
  17. |> > display sometimes 'flashes' (ie, the Copper Pointers were wrong for 
  18. |> >á1 frame).  Use the 3.0 Intuition/ChangeScreenBuffer() function instead.  
  19. |> >áIt works great (I dunno how fast it is but it seems pretty fast)
  20. |> 
  21. |> Ok. What routine should be used for CyberGraphX?
  22.  
  23. well seems that OS3 buffering works bets for both AGA and gfx-cards.
  24. just blitterc2p to the aga screens and writepixelarray8 to the gfx-screens.
  25.  
  26. non 1x1 modi however get either slow (both AGA & gfx-card) or if you
  27. optimize (AGA only) you seem to need special copperlists, and it
  28. doesn't work correct with all monitors (so AGA PAL/NTSC only).
  29.  
  30. well, make 1x2 is just copying a line.
  31.  
  32. fastest code to make 2x1 with cpu ?
  33.  
  34. a try for 020 in fastmem:
  35.  
  36.  move.l (a0)+,d0
  37.  movep.l d0,(a1)+ ;destination really should not be chipmem
  38.  
  39. this will also give ghost look ;)
  40.  
  41.  
  42. move.w (a0)+,d0
  43.  
  44. move.b d0,d1 : lsl.l #8,d1 : move.b d0,d1
  45. move.w d0,d2 : lsl.l #8,d2 : move.w d0,d2 : lsr.l #8,d2
  46.  
  47. swap d2 : move.w d1,d2 : move.l d2,(a1)+
  48.  
  49. :\ 
  50.  
  51. 17 cyc/pix if you manage to use the free cycles of (a1)+
  52.  
  53. move.b (a0)+,d0
  54. move.b d0,d1 : lsl.w #8,d1 : move.b d0,d1
  55. move.w d1,(a1)+
  56.  
  57. 16 cyc/pix if using free cyc.
  58.  
  59. :\
  60.  
  61. move.b (a0)+,(a7)+
  62.  
  63. 6cycles/pix, ghost look :)
  64.  
  65. A 030-25 will need more time making up a 2x2 scren on gfx-card than a
  66. 020-14 copying to AGA 2x2 modi!
  67.  
  68. An alternative could be a changed texture mapper storing words,
  69. but it's annouying to write each gfx-routine 2 times, and source
  70. bitmap only could hold 128x256 pix :\\
  71.  
  72. |> 
  73. |> --                               _
  74. |> a Stellar programmer          _ //
  75. |> "Amiga - back for the future" \X/
  76. ------------------------------------------------------------------------
  77.    fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)   =:)
  78.  
  79.