home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / 21551 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.7 KB  |  52 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!comp.vuw.ac.nz!canterbury.ac.nz!rob
  3. From: rob@cosc.canterbury.ac.nz (Rob Whitehead)
  4. Subject: Fast X graphics
  5. Message-ID: <C1Fq62.Lp8@cantua.canterbury.ac.nz>
  6. Nntp-Posting-Host: whio.canterbury.ac.nz
  7. Organization: University of Canterbury, Christchurch, New Zealand
  8. Date: Tue, 26 Jan 1993 00:18:01 GMT
  9. Lines: 41
  10.  
  11.  
  12. Hi,
  13.    I'm posting this message in the hope that someone can give me some
  14. pointers. I've have ported the Flying Toasters screen saver to unix
  15. running on an X terminal under X11R5. Everything works as planned
  16. apart from an anoying flicker as each image is redrawn.
  17.  
  18. I have stored each flying frame as an XImage and i'm using XPutImage
  19. to transfer each frame a screen sized window. Each image is 8 bits deep
  20. and i'm using the default colormap. Each image is normally moved 1 pixel
  21. left and 1 pixel down each time through the event loop. The XPutImage 
  22. call produces a flicker as if the image is being inverted before being
  23. redrawn. (i explicitly remove the image area that is not redrawn by the
  24. XPutImage call.)
  25.  
  26. Questions:
  27.  
  28. 1/  Is there an easir or better way of drawing XImages.
  29.  
  30. 2/  Should I use pixmaps instead, I tried this but the process appeared to
  31. increase its memory size without bounds.
  32.  
  33. 3/  Should I use a custom colormap, would this stop the anoying flicker.
  34.  
  35. 4/  Is their any source code available that uses fast 8bit graphics that
  36. I can look at for hints.
  37.  
  38.  
  39. Thanks for any help.
  40.  
  41. ps. Sorry if this is the wrong group, other suggested groups would be
  42. welcome.
  43.  
  44. ============================================================
  45. Rob Whitehead            email: rob@cosc.canterbury.ac.nz
  46.                 snail: Dept of Computer Science
  47. I'm Rob -                University of Canterbury
  48.     who the hell is Bart!!       New Zealand
  49.  
  50.  
  51.  
  52.