home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17281 < prev    next >
Encoding:
Text File  |  1992-12-12  |  4.4 KB  |  100 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!mcsun!Germany.EU.net!mpifr-bonn.mpg.de!specklec.mpifr-bonn.mpg.de!mlelstv
  3. From: mlelstv@specklec.mpifr-bonn.mpg.de (Michael van Elst)
  4. Subject: Re: Hardware/Amiga 1200.
  5. Message-ID: <1992Dec12.200757.28401@mpifr-bonn.mpg.de>
  6. Sender: news@mpifr-bonn.mpg.de
  7. Nntp-Posting-Host: specklec
  8. Organization: Max-Planck-Institut f"ur Radioastronomie
  9. References: <18286@mindlink.bc.ca> <2097@lysator.liu.se>
  10. Date: Sat, 12 Dec 1992 20:07:57 GMT
  11. Lines: 87
  12.  
  13. In <2097@lysator.liu.se> ronnie@lysator.liu.se (Ronnie Sahlberg) writes:
  14. >(in fact, almost all PCgames doesnt hit the hardware, they run graphichs 
  15. >through BIOS, which can be thought of as a POOR-MANS-graphics.library)
  16. >((which also makes it possible to run the games on several DIFFERENT 
  17. >graphics cards.))
  18.  
  19. Sorry, but this is rubbish. The only 'support' in the BIOS are routines to
  20. select some standard graphics modes and do some _text_ output. Since some
  21. of the faster display modes are not supported you even have to initialize
  22. your cards by writing to the hardware registers. That's why most DOS programs
  23. that do graphics have one or two _dozen_ different display drivers.
  24.  
  25. Windows on the other hand has an API for doing graphics.
  26.  
  27. >Most modern graphics today doesns use Bitplanes like amiga.
  28. >Yes, bitplanes were great when introduced in 1984, they saved memory, but were
  29. >VERY slow. Today, memory is dirt cheap, so this is not a problem any more.
  30.  
  31. Bitplanes are not generally slow. Writing single pixels or thin lines
  32. to frame buffers which use bytes or words for pixels is of course
  33. faster.
  34.  
  35. Most modern graphics use 1 byte per pixel because that is cheaper
  36. to implement and easier to program.
  37.  
  38. >A normal PC with a normal graphics card, i.e. SVGAcard only needs to write ONE BYTE to do a WritePixel() on a 256 colors display.
  39. >On modern PCs this corresponds to something like 2 clockcycles.
  40. >(Write 1 byte to memory ~~ 2 cycles)
  41.  
  42. Draw a 20x30 pixel polygon and the bitplanes are about the same speed.
  43. And they get faster when you don't need the full depth of the frame
  44. buffer.
  45.  
  46. >On an amiga with, lets say 32 colors (5 bitplanes) one would need to do 
  47. >something like (assuming a 68040 (RISC-influenced) processor)
  48. >  1,   Read Word from GFXmem.        at least 2 cycles.
  49. >  2,   Check if to set 0 or 1 in this bitplane.   at least 1 cycle.
  50. >  3,   Conditional branch/Set bit in word.        at least 2 or 3 cycles.
  51. >  4,   Write word to GFXmem.         at least 2 cycles.
  52. >This adds up to at least 7 cycles per bitplane.
  53. >=> at least 35 cycles for a 32 colors display.
  54.  
  55. Ever heard of XOR operations ?
  56.  
  57. >(remember a 256 colordisplay needs only 2 cycles nowadays)
  58. >That is, normal PC graphics cards is at least 15 times faster than amiga
  59. >graphics when running on same clock speed.
  60.  
  61. If your math were correct :)
  62.  
  63. >This is when doing a ReadPixel(), WritePixel() that is the most elementary
  64. >operations to be performed on a raster display.
  65.  
  66. Matter of fact is that it is _not_ an elementary operation for most
  67. things.
  68.  
  69. >Imagine how much faster things like textruremapping is on a 1Byte<=>1Pixel
  70. >display compared to amigas bitplanes. texturemapping and other complex stuff
  71. >like rotation/ scalinfg and such is EXTREMELY fast on displays like PCs SVGA, but very timeconsuming (and probably impossible to make smooth on bitplanes displays ) on the amiga.
  72.  
  73. Most real texture mapping routines would require calculations that take
  74. more time than drawing the actual pixel.
  75.  
  76. >A complex operation like scaling up/down an image on SVGA displays is easilly 
  77. >done by plainly duplicating/removing certain bytes in the source image.
  78. >To do scaling on the amiga one needs to do bitmanipulations on every bitplane in the display.
  79.  
  80. Which is the same speed when using a table. With the table you can also
  81. do arbitrary dither patterns with no overhead.
  82.  
  83. >By redesigning the hardware, it would be very possible if not certain to 
  84. >improve graphics speed by at least a factor 10-20.
  85.  
  86. Not by going to chunky pixels.
  87.  
  88. >Who would then care if going through th OS might be only 50% of the speed
  89. >compared to hitting the hardware directly. We would anyway have at least 5-10 
  90. >times performance of ECS.
  91.  
  92. I think you are quite wrong in your conclusions.
  93.  
  94. Regards,
  95. -- 
  96. Michael van Elst
  97. UUCP:     universe!local-cluster!milky-way!sol!earth!uunet!unido!mpirbn!p554mve
  98. Internet: p554mve@mpirbn.mpifr-bonn.mpg.de
  99.                                 "A potential Snark may lurk in every tree."
  100.