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