Re: Snappy GUI response
Havoc Pennington <[email protected]>
| Newsgroups | gmane.comp.xfree86.forum |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Jul 06, 2003 at 12:15:11PM -0700, David Jeske wrote: > 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? I'd just end timing after GTK processes the first expose event on the new window, which should be close enough to the right thing. If you're timing in a separate process from the one that's drawing, sending a client message after handling the first expose seems like a reasonable way to notify the separate process. You could include gettimeofday() in the client message so time to send and process the message won't be included in the time. Havoc