jsw@lorax.umiacs.umd.edu (Jeff Webber) (08/10/89)
I have ported a suntools application to X that times how long it takes to render an complex object. I have an X11R3 that draws approximately 20,000 vectors. (the object is a complex diagram) Using separate calls to XDrawLine() (I know I should use XDrawLines() but I have my reasons) I would like to know if there is a way I can block program execution until the X server in question has finished DRAWING all that was requested of it. Jeff Webber / U of Maryland Institute for Advanced Computer Studies path: uunet!mimsy!jsw phone (301)-454-7687 jsw@lorax.umiacs.umd.edu
keith@EXPO.LCS.MIT.EDU (08/11/89)
> I would like to know if there is a way I can block program execution > until the X server in question has finished DRAWING all that was > requested of it. x11perf (an X performance measuring program) uses a single pixel GetImage to wait for drawing to finish. This works because X guarantees that requests appear to execute sequentially; the GetImage must wait for all of the drawing to finish before it can extract the results. If you don't care about flushing any display hardware pipeline, you can use XSync(dpy, FALSE).