----- Original Message ----- From: Rafael E. Herrera <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 5:31 PM Subject: [Xpert]High X server CPU usage when drawing
> Hello, > > I'm developing an application using the motif toolkit to display line > traces in the manner of a multichannel osciloscope. This is a linux > platform. > > The window draws a number of horizontal traces obtained from a data > source. When we started using the xinerama extension or very large > resolutions (> 1280x1024). We started observing an undesirable behavior: > > The application, when is resized, re-creates the pixmaps where the data > is drawn. The old ones are freed and new ones are created according to > the new size of the window. Then, the program continues operating by > receiving new data periodically and drawing them. How you handle Ecpose Event... I was done similar task in Athena Widget set and via Xlib functions XDrawLine XDrawArc... I have 2 dynamicaly reziable arrays of structures(one for XDrawLine parameters and the other for XDrawArc parameters) and in Expose handler I just read clear graphical context and run 2 cycles for displaying arcs and lines... Window manager and as wel my application runs with priority -20, load is permanently about 70% for X (but I run another one task with priority -20). Reactions for keypress are delayed <2s on a Celeron @333Mhz based PC... High load is normal for any WIMP system... Bye Peter _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
