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

  1. Path: fc.hp.com!news
  2. From: koren@hpsrk.fc.hp.com (Steve Koren)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: WritePixelArray vs. ClipBlit vs. ...
  5. Date: 27 Jan 1996 13:28:28 -0700
  6. Organization: HP Fort Collins Site
  7. Sender: koren@hpsrk.fc.hp.com
  8. Message-ID: <oj6n379tmab.fsf@hpsrk.fc.hp.com>
  9. References: <oj6ka2yity1.fsf@hpsrk.fc.hp.com> <sqoWx*NA0@mkmk.in-chemnitz.de>
  10.     <4e9dju$ron@sunsystem5.informatik.tu-muenchen.de>
  11. NNTP-Posting-Host: hpsrk.fc.hp.com
  12. In-reply-to: fischerj@Informatik.TU-Muenchen.DE's message of 26 Jan 1996 02:17:34 GMT
  13. X-Newsreader: Gnus v5.0.9
  14.  
  15.  
  16. fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) wrote:
  17.  
  18. > : > This is annoying.  Is there any way to do case D) easier than what I am
  19. > : > thinking?
  20. > I do not quite get what you want to do. Looks like your engine renders
  21. > planar on AGA and chunky on gfx-card. This should give 10 times more work
  22. > than adapting the copy routines. I'm really wondering...
  23.  
  24. Right now my engine never renders planar (it will run without a graphics
  25. card, but I don't consider systems without graphics cards useful, so I
  26. don't care about optimizing for that case).  It renders 24 bit truecolor
  27. for 16 and 24 bit gfx card modes, and it renders 8 bit LUT for 8 bit
  28. register modes.  WritePixelArray(cybergraphics.library) and
  29. WritePixelArray8(graphics.library) are used, accordingly.  I would
  30. prefer to *always* render 24 bit, but there doesn't seem to be an easy
  31. way to blit a 24 bit bitmap to an 8 bit screen and have the remappinng
  32. work.  So, failing that, I do more work in my code to render either 8
  33. bit LUT or 24 bit truecolor graphics depending on the screen I'm going
  34. to be talking to.
  35.  
  36. > Also why 24bit mode. you want to play the 8bit chunky game also when
  37. > 24bit is present I guess. Or do you even have a 24bit version of your
  38. > rendering engine.
  39.  
  40. Well, it is not a game, it is an application.  It would prefer to always
  41. deal with 24 bit color space.  I did briefly consider always rendering
  42. to 24 bit internally, and using ObtainBestPen() on each pixel before
  43. displaying to achieve the truecolor->LUT conversion.  However, this is
  44. *terribly* slow on a 68040/25.  ObtainBestPen() is no practical for use
  45. on every pixel in a large image.  So instead I obtain some pens up front
  46. and render using them, if I'm on a LUT screen.
  47.  
  48. > anyway it's no wonder that updating a 256 color window on a 24bitscreen
  49. > needs some time (colortable lookup...)
  50.  
  51. Yes, but it is far slower than I can explain by doing lookups.  If it
  52. was just doing one color table lookup per pixel, it should be much
  53. faster (compared to WritePixelArray)) than it is.  So I don't understand
  54. why it is so slow now.
  55.  
  56. > : I'm afraid not, except waiting for true RTG. As far as I understood
  57. > : it, RTG would provide automatic format conversion when blitting
  58. > : between any bitmap formats.
  59. > huh ? Current functions do this, too. writeparr8, blitbitmap...
  60. > if they don't, imho the gfxcard driver is not ok.
  61.  
  62. They do in some cases, but not all.  I can blit an 8 bit array of pen
  63. values to a 16 or 24 bit screen (although quite slowly).  But I cannot
  64. blit a 24 or 16 bit truecolor array of data to a LUT screen mode.  I
  65. believe that's what the poster above means.  Some systems do this -
  66. applications can always speak 24 bit, and any necessary remapping is
  67. done at display time.
  68.  
  69.    - steve
  70.