home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!comp.vuw.ac.nz!canterbury.ac.nz!rob
- From: rob@cosc.canterbury.ac.nz (Rob Whitehead)
- Subject: Fast X graphics
- Message-ID: <C1Fq62.Lp8@cantua.canterbury.ac.nz>
- Nntp-Posting-Host: whio.canterbury.ac.nz
- Organization: University of Canterbury, Christchurch, New Zealand
- Date: Tue, 26 Jan 1993 00:18:01 GMT
- Lines: 41
-
-
- Hi,
- I'm posting this message in the hope that someone can give me some
- pointers. I've have ported the Flying Toasters screen saver to unix
- running on an X terminal under X11R5. Everything works as planned
- apart from an anoying flicker as each image is redrawn.
-
- I have stored each flying frame as an XImage and i'm using XPutImage
- to transfer each frame a screen sized window. Each image is 8 bits deep
- and i'm using the default colormap. Each image is normally moved 1 pixel
- left and 1 pixel down each time through the event loop. The XPutImage
- call produces a flicker as if the image is being inverted before being
- redrawn. (i explicitly remove the image area that is not redrawn by the
- XPutImage call.)
-
- Questions:
-
- 1/ Is there an easir or better way of drawing XImages.
-
- 2/ Should I use pixmaps instead, I tried this but the process appeared to
- increase its memory size without bounds.
-
- 3/ Should I use a custom colormap, would this stop the anoying flicker.
-
- 4/ Is their any source code available that uses fast 8bit graphics that
- I can look at for hints.
-
-
- Thanks for any help.
-
- ps. Sorry if this is the wrong group, other suggested groups would be
- welcome.
-
- ============================================================
- Rob Whitehead email: rob@cosc.canterbury.ac.nz
- snail: Dept of Computer Science
- I'm Rob - University of Canterbury
- who the hell is Bart!! New Zealand
-
-
-
-