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

  1. Path: fc.hp.com!news
  2. From: koren@hpsrk.fc.hp.com (Steve Koren)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: WritePixelArray vs. ClipBlit vs. ...
  5. Date: 11 Jan 1996 09:20:54 -0700
  6. Organization: HP Fort Collins Site
  7. Sender: koren@hpsrk.fc.hp.com
  8. Message-ID: <oj6ka2yity1.fsf@hpsrk.fc.hp.com>
  9. NNTP-Posting-Host: hpsrk.fc.hp.com
  10. X-Newsreader: Gnus v5.0.9
  11.  
  12.  
  13. A little experimentation revealed that on my (Z-II 040/25) graphics
  14. card, WritePixelArray8 is about twice as fast as ClipBlit when both are
  15. talking to a 256 color screen.  No surprise there.  ClipBlit is much
  16. faster for the Amiga native gfx modes (again no surprise).  And then we
  17. have a CyberGfx call for dealing with truecolor modes that is better
  18. than either of the above two if you have a truecolor screen, but doesn't
  19. work on 8 bit screens at all.
  20.  
  21. So now, I am writing a program, and I have the following choices:
  22.  
  23.   A) Do minimum work, run on all modes, optimize for native modes:
  24.         -> Always use ClipBlit
  25.  
  26.   B) Do minimum work, run on all modes, optimize for graphics cards
  27.         -> Always use WritePixelArray8
  28.  
  29.   C) Do minimum work, *only* run on truecolor 16/24 bit modes:
  30.         -> Use the cybergfx call
  31.  
  32.   D) Do maximum work, optimize for each case:
  33.         -> Use ClipBlit on native screenmodes
  34.         -> Use WritePixelArray8 on CyberGfx 8 bit screenmodes
  35.         -> Use the CyberGfx call on truecolor 16/24 bit screenmodes
  36.  
  37. This is annoying.  Is there any way to do case D) easier than what I am
  38. thinking?
  39.  
  40. Also, if I have allocated a bitmap as a "friend bitmap" of a 8 bit
  41. cybergfx mode, I would almost have expected ClipBlit to be as fast as
  42. WritePixelArray8.  But it isn't even close.  Why not?  In fact, I
  43. haven't seen the friend bitmap to make any difference at all.  I can use
  44. it or not use it, and in both cases ClipBlit is slower than
  45. WritePixelArray8.
  46.  
  47.   - steve
  48.