home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.i386unix
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!linac!att!cbnewsk!cbnewsj!dwex
- From: dwex@cbnewsj.cb.att.com (david.e.wexelblat)
- Subject: Re: Accessing video memory bypassing Xserver
- Organization: AT&T
- Date: Fri, 22 Jan 1993 00:48:18 GMT
- Message-ID: <1993Jan22.004818.1494@cbnewsj.cb.att.com>
- References: <none> <C10E8t.9s5@lut.fi> <epstein.727300746@trwacs>
- Lines: 59
-
- In article <epstein.727300746@trwacs> epstein@trwacs.fp.trw.com (Jeremy Epstein) writes:
- > junki@lut.fi (Juha Nurmela) writes:
- >
- > >What I'm considering is to mmap the video memory just like the
- > >server does. Creating a properly configured window and keeping an eye
- > >on its geometry on the screen, it would be possible to transfer images
- > >to this area with direct access, faster than going through sockets
- > >and context switches. Configuring this window with a wm might of course
- > >mess up the screen sometimes, but that's what xrefresh is made for...
- >
- > >I have fooled around with the mmap already, and (of course) it works
- > >as advertised. However, the screen doesn't seem to stay still, my
- > >bcopy's pop up here and there, apparently almost randomly (?).
- > >Maybe the hw-panning server is doing causes this. Is there anything
- > >I could do about this without modifying server ? Maybe an XExtension
- > >for getting the 'real' coords from server would be the best solution ?
- >
- > This sounds like the brain-damaged IBM PC architecture biting you.
- > The frame buffer isn't a uniform memory space which you can scribble
- > in. Rather, it's divided into pages, which are then used via the
- > bank mechanism. The effect you're seeing is that the X server is
- > switching banks on you, so depending which bank is active, you're
- > drawing on varying parts of the screen.
-
- Jeremy is exactly right. SVGA only allows a 64k window to be available
- to the CPU at any given time (well, there are some odd exceptions, but we
- won't go into that :->).
-
- >
- > You could try to synchronize your server with the client via an
- > extension to know which bank is active, but I doubt that you'd be
- > able to get it to work correctly, since they'd still never stay
- > synchronized.
-
- Any particular reason that the MITSHM extension doesn't already do what
- you're after? If you're using an ET4000, I think you would be (very)
- hard pressed to find a faster way to do this than creating shared-memory
- pixmaps, and then XCopyArea'ing the whole pixmap to the screen. Unless
- you want to reimplement SpeedUp (which I don't recommend).
-
- >
- > I think your best bet is try a more sensible hardware architecture
- > than the IBM PC and VGA cards.
-
- Now, now, Jeremy. Not everyone has that option :->
-
- > --
- > Jeremy Epstein Internet: epstein@trwacs.fp.trw.com
- > Trusted X Research Group Voice: +1 703/803-4947
- > TRW Systems Division
- > Fairfax Virginia
-
-
- --
- David Wexelblat <dwex@mtgzfs3.att.com> (908) 957-5871
- AT&T Bell Laboratories, 200 Laurel Ave - 3F-428, Middletown, NJ 07748
-
- "The meaning of life? That's simple. Try to be happy, try not to hurt
- other people, and hope to fall in love." -- Mallory Keaton
-