Re: XForms: flickering images

Andrew McCready (mccready@andrew.cmu.edu)
Wed, 14 Apr 1999 14:46:00 -0400 (EDT)

# To subscribers of the xforms list from Andrew McCready <mccready@andrew.cmu.edu> :

On Wed, 14 Apr 1999, Steve Lamont wrote:

> > So I'm displaying several pixmaps as an animation, but depending when the
> > refresh hits, the pixmap flickers a little. Is there anyway to wait for
> > the gun to hit the bottom of the screen before calling set pixmap?
>
> It's probably not a refresh issue but simply the speed at which the Pixmaps
> are drawn. How are you swapping Pixmaps?

FL_OBJECT *img;
Pixmap p;

/* create and fill Pixmap with image to be shown */

fl_free_pixmap_pixmap(img);
fl_set_pixmap_pixmap(img, p, 0);


The images are 320x240. Is there a limit on the number pixels that can be
drawn between refreshes with set_pixmap (due to xserver overhead, etc)?
Regardless, unless the X server (or Xforms or anything else between my
code and the screen) waits for the gun to start heading back to the top of
the screen, I don't see how it'd be possible to refresh anything without
seeing flicker at least some of the time. Or do I really have no clue?

Thanks, Andrew

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/