home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 693 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Amiga programmers in deep shit...
  5. Date: 10 Jan 1996 17:14:06 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Distribution: world
  8. Message-ID: <4d0s4u$i4i@maureen.teleport.com>
  9. References: <4cjjbr$4im@maureen.teleport.com> <4cmvp3$mis@mordred.cc.jyu.fi> <4cnhfp$jjo@maureen.teleport.com> <4cr6va$o7@news.xs4all.nl>
  10. NNTP-Posting-Host: julie.teleport.com
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Marco Nelissen (marcone@xs1.xs4all.nl) wrote:
  14. : Stephan Schaem (sschaem@teleport.com) wrote:
  15. : :  You have a 4500x200 8bit picture on a floppy. this picture is the background
  16. : :  for an horizontal scrolling map (Put what ever you want on top).
  17. : :  now, as you scroll the map, you can load it from floppy tiny bit at a 
  18. : :  time... No need to have in in memory.
  19.  
  20. : So why can't this be done with a harddisk? Your floppydrive is capable
  21. : of doing something like 30 kilobytes per second I believe, but let's round
  22. : this up to 50k per second. Now take a harddisk that does 500k per second
  23. : (which is quite slow). You will see that even if this harddisk requires
  24. : 100% cpu, you still only use 10% of the total cpu, if you load at the same
  25. : speed as a floppydrive. If you take more realistic figures for floppy-
  26. : and harddisk-speed (35 kilobytes vs. 1 megabyte per second), you get
  27. : 3.5% cpu-used for a harddisk, when loading the data at floppy-speed.
  28.  
  29.  The reason is simple... the floppy DMA controler used reserved chip ram
  30.  DMA slot. The floppy rate can be controled taking into acount RPM, 
  31.  setup time, and sync pos to provide a steady flow of data that uses
  32.  only some blitter time to decode.
  33.  Now try this on a basic A2000 with dataflyer and ide drive you dont know
  34.  whats going on. The only time you can use 100% of the cpu tyime for the 
  35.  read is during the frame time unused.. lets say 10 to 20%.
  36.  
  37.  I think your forgot the fact that data are loaded while the machine is
  38.  fully active. 3.5% cpu usage is way to much, it equal to 210% of a frame 
  39.  frame... You need to guaranty that the device do not use more then 10%
  40.  per frame. BTW the floppy use less then a 1% for this job. the 10% is
  41.  a figure needed for HD.. 
  42.  
  43.  Stephan
  44.