home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbfsb!cbnewsb.cb.att.com!elton
- From: elton@cbnewsb.cb.att.com (elton.huang)
- Subject: The most effecient way to scroll: initiate a discussion or asking some direction if already discussed
- Message-ID: <1992Aug21.205134.12632@cbfsb.cb.att.com>
- Sender: news@cbfsb.cb.att.com
- Organization: AT&T
- References: <1992Aug21.135451.14359@cci.dk>
- Date: Fri, 21 Aug 1992 20:51:34 GMT
- Lines: 40
-
- Dear Netter,
-
- I have been working on the following problem for quite a while:
-
- My application is a graphic browser to browse a graph containing
- many rectangles. Heavy scaling is involved.
-
- I've been trying to find out the fastest way to scroll. "Erase
- and redraw"", I belive, is the most easy yet primitive way.
-
- I believe one of the solution is pixmap. This does not sound very
- good to me for (1) drawing in advance (to the pixmap) is required
- which doesn't really save much (you have to draw any way. (2) And
- since scaling is too often, the drew-in-advance may be of no use.
- (3) Would it requre lots of client-server traffic when using
- pixmap ?
-
- Region seems to be something better. You can designate a area then
- change the offset of it. (I haven't experimented on it) For awhile
- I thought this is exactly what I was looking for: manipulating the
- screen display memory (frame buffer?) until I found out in the
- porting guide of server that region actually is allocated
- dynamically in the heap for server. Then I don't think it will
- do much good and I also have to trade off the server memory.
-
- Then it's image. But it does look like something like region. Yet
- to explore.
-
- Here is a question: have I actually exhausted all solutions and
- it is actually a concepct of X that server does not expect client to
- manipulate frame buffer directly even through server. If I
- really want to do that, the only possible way is to modify the
- server to pave the way out. Is this a fair assumption ?
-
- Please shed some light if you have any thought or direct me to some
- literatures.
-
- Thanks,
-
- Elton
-