I try to make an oscilloscope with a AD converter and Xwindows display. The X display is fast enough to draw the data for sample rates up to 50 kHz. But I think it is no good idea to draw and undraw lines multiple times within a single vertical screen sync of the display. This results in black stripes running over the screen (like the wheel effect in western movies) Does anyone know about a hack which allows to synchronize a process with the vsync of the screen. I would like to have some code like: while( runnig ){ read_digitizer_fifo(); sleep_until_vsync(); /* this would be great */ undraw_old_data_line(); draw_new_data_line(); } Sure it is only possible when the X server runs on the same host. Walter Berthold [EMAIL PROTECTED] -- To unsubscribe from this list, send a message to [EMAIL PROTECTED] with the command "unsubscribe linux-embedded" in the message body. For more information, see <http://waste.org/mail/linux-embedded>.