home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20800 < prev    next >
Encoding:
Text File  |  1993-01-06  |  2.7 KB  |  68 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!news.funet.fi!ajk.tele.fi!funic!nntp.hut.fi!vipunen.hut.fi!jmunkki
  3. From: jmunkki@vipunen.hut.fi (Juri Munkki)
  4. Subject: Re: Alternate Screen buffer in newer macs?
  5. Message-ID: <1993Jan6.143754.13679@nntp.hut.fi>
  6. Keywords: Alternate screen buffer, animation
  7. Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
  8. Nntp-Posting-Host: vipunen.hut.fi
  9. Reply-To: jmunkki@vipunen.hut.fi (Juri Munkki)
  10. Organization: Helsinki University of Technology
  11. References: <9300610.18577@mulga.cs.mu.OZ.AU> <1993Jan6.023536.4928@netcom.com>
  12. Date: Wed, 6 Jan 1993 14:37:54 GMT
  13. Lines: 53
  14.  
  15. In article <1993Jan6.023536.4928@netcom.com> ray@netcom.com (Ray Fischer) writes:
  16. >markkj@muse.cs.mu.OZ.AU (Mark Johnston) writes ...
  17. >>    G'day.  I was wondering if anyone could tell me if the newer macs (ie
  18. >>anything above a Plus... :) still have the alternate screen buffer?
  19. >
  20. >Yes, I can.  No, they don't.
  21.  
  22. It's not quite as simple as this.
  23.  
  24. >In fact, many of the newer Macs don't (or didn't) have _any_ screen
  25. >buffer, relying instead on plug-in video cards.
  26.  
  27. A NuBUS video card will usually contain a frame buffer and video RAM.
  28. It's not really different from built-in video, since built-in video
  29. hardware looks like a NuBUS card to the system software.
  30.  
  31. >I suppose you might
  32. >be able to hack something that would futz with the buffer start
  33. >address on some video cards / systems, but it would be truly nasty
  34. >stuff that would break the moment Apple looked at it funny.
  35.  
  36. The Apple 32-bit video card design guidelines and sample driver
  37. code give instructions on how to give access to multiple video
  38. pages. The 8 bit video card has this capability in 1/2/4 bit
  39. deep modes, but lacks the memory in 8 bit mode. The problem is
  40. that you can't ever rely on having more than one page. There are
  41. a lot of machines where you can't have more than one frame buffer.
  42.  
  43. Oids uses multiple video pages quite successfully and flickers
  44. horribly when only one page is available.
  45.  
  46. >If you
  47. >want to be at all portable, use either CopyBits, or if that isn't fast
  48. >enough try copying directly to the video RAM (but make sure you know
  49. >how to do it _properly_, it ain't easy).
  50.  
  51. Copybits is quite fast, if did all the work on an offscreen buffer, but
  52. it's usually faster to draw the animation directly onto the screen.
  53.  
  54. To draw into video memory directly, you have to read the 32-bit video
  55. card document I mentioned (I found it on ftp.apple.com) and know almost
  56. everything about graphics devices (IM V and VI).
  57.  
  58. IMO, it's not hard. You just have to figure it out once. The keys to
  59. doing it correctly on color machines are:
  60.  
  61.     ShieldCursor
  62.     SwapMMUMode
  63.  
  64.  
  65. -- 
  66.   Juri Munkki                           Windsurf: fast sailing
  67.  jmunkki@hut.fi                          Macintosh: fast software
  68.