Google
  Web www.spinics.net

Re: Snappy GUI response

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Fri, Jul 04, 2003 at 11:30:59PM -0400, Havoc Pennington wrote:
> I do think your benchmark idea is a good one ...
 [snip]
> It is fairly annoying to write benchmark or test suite stuff for
> interactive operations but with good knowledge of GTK and the XTest
> extension it ought to be possible.

Simulating the click with XTest is easy enough. However, I'm unclear
how to determine when drawing work is done. This is what I'm trying to
do:

1) create a 400x400 window with a GTK button in the middle
2) the GTK button event handler creates a new 400x400 window with a
   label in the middle
3) use XTest to generate a click of the button (and log the usec time)
4) let X/GTK do it's thing
5) determine when the new window is fully rendered to the screen (and
   log the usec time)

I'm unclear on how to determine when the server is done rendering
(i.e. #5). Is there a straightforward way to do this? If I put a
ClientMessage (to myself) into the queue at the end of an expose, can
I reasonably assume (on xfree) that I won't receive my client message
back until after the pixels are actually on screen? Is there a better
way to do this?

-- 
David Jeske (N9LCA) + http://www.chat.net/~jeske/ + jeske@chat.net
_______________________________________________
Forum mailing list
Forum@XFree86.Org
http://XFree86.Org/mailman/listinfo/forum

[XFree86]     [XFree86]     [XFree86 Newbie]     [IETF Annouce]     [Security]     [Bugtraq]
[Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Samba]     [Linux Security]     [Linux RAID]     [Linux Resources]


  Powered by Linux