home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / i386unix / 359 < prev    next >
Encoding:
Text File  |  1993-01-21  |  3.0 KB  |  70 lines

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