home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / alt / sys / amiga / demos / 1487 < prev    next >
Encoding:
Text File  |  1992-11-09  |  3.8 KB  |  75 lines

  1. Newsgroups: alt.sys.amiga.demos
  2. Path: sparky!uunet!mcsun!fuug!funic!nntp.hut.fi!nntp!mknip
  3. From: mknip@niksula.hut.fi (Mats Anders Knip)
  4. Subject: Re: Music and Code from Demos
  5. In-Reply-To: tfinn@crash.cts.com's message of 06 Nov 92 16:19:07 PST
  6. Message-ID: <MKNIP.92Nov9165110@blob.hut.fi>
  7. Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
  8. Nntp-Posting-Host: blob.cs.hut.fi
  9. Organization: Helsinki University of Technology, Finland
  10. References: <MKNIP.92Nov5110420@silver-surfer.hut.fi> <1992Nov05.155826.9766@crash>
  11.     <MKNIP.92Nov6113247@blob.hut.fi> <1992Nov06.161907.20975@crash>
  12. Date: 9 Nov 92 16:51:10
  13. Lines: 60
  14.  
  15. >   hmm... what exactly is copper? I'm aware that blitter is kind
  16. > of a background memory -> video data mover of some sort, but that's about
  17. > all I know.
  18.  
  19. The copper, my dear PC-user, is what makes the Amiga so superior to
  20. the PC when it comes to (among other things) scrolling and color-
  21. cycling. The copper (Graphics CoProcessor) takes care of all bitmap
  22. and color handling, and has direct access to chip-mem by DMA.
  23. If you want to do anything with the screen, tell the copper about
  24. it, and it takes care of it all. (well, almost...)
  25. For example - let's imagine you have got a 1000-pixel wide bitmap that
  26. you want to scroll from left to right. On the PC, each frame you copy
  27. 200*320 (= 64k) bytes from memory to the graphics-handler (right?),
  28. which takes a LOT of CPU time. You can't even make a 50hz scroll on a 
  29. slower PC. (the C64 could do that...poor work, PC-designers!) On the
  30. amiga, you tell the copper what part of memory you want to show, and
  31. the number of pixels to step over before it starts drawing and - POOF!
  32. There you go. This requires a total of 2 word-moves per bitmap + one
  33. move for the fine-tune. Compare that to the PC's 64000...
  34. You can also tell the copper to stop on a specified point of the
  35. screen aevery frame and change the palette-colors, thus enabling you to
  36. change the basic palette colors for each line of the screen -> enabling
  37. the Amiga to show as many colors as you like on screen at once.
  38. (only, sob, up to 4096 of course...) And this steals nearly no proces-
  39. sing time from the CPU at all, since the copper only works on odd cycles.
  40. The blitter is another co-processor that has DMA access to the Amigas
  41. chip-memory. It can be used to move big heaps of data and
  42. perform operations on the data (like and, or etc...) at the same time
  43. without any load on the CPU (not completely true, but basically.
  44. Really complicated operations steal more cycles from the CPU, while
  45. a simple operations like a plain copy steals nearly no time at all). You
  46. can for example use the blitter to draw windows and menues in the
  47. WorkBench environment or to draw graphics to the borders of the screen
  48. while scrolling. (+ 100 other things). The blitter can also be used to
  49. draw very fast lines.
  50.  
  51. >   Well plasma on the IBM is currently done via palette cycling...
  52. > pretty fast and relatively easy to do (you've just got to do your code
  53. > right!)
  54.  
  55. Hmmm... You can't mean plasma. That would require a palette of
  56. thousands of colors. Color-bars perhaps, but not plasma.
  57. A plasma is (basically) done by changing the background-color of
  58. the screen every 2nd cycle (8 pixels) with the copper. For more
  59. anvanced plasmas, bitmaps can be used together with fine-scroll
  60. (also handled by the copper) and color changes.
  61.  
  62. >   Would someone kindly define what exactly copper and blitter plus
  63. >   any other amy specifics are?
  64.  
  65. Hope you got some ideas.
  66.  
  67. --
  68.  
  69.  *=-------------------------------------------------------=*=----------------=*
  70.  *          E-Mail:   mknip@niksula.cs.hut.fi              *                  *
  71.  *   Helsinki University of Technology /                   *                  *
  72.  *                      department of Computer Science     *                  *
  73.  *=-------------------------------------------------------=*=----------------=*
  74.  
  75.