Survex 0.95 prerelease 7 and xcaverot's rubber band.

Olly Betts olly@survex.com
Tue, 31 Oct 2000 14:14:25 +0000


In message <20001027115404.L4554@mrs30.quns.cam.ac.uk>, Mark Shinwell writes:
>On Fri, Oct 27, 2000 at 11:44:45AM +0100, Olly Betts wrote:
>> But any idea why [combining pending events] is too slow with
>> GTK?  I have trouble visualising what could take the time.
>
>Well it has all the crud in the way in GDK with removing events and
>copying structures, etc.

Surely you'd need to do a ridiculous amount of structure copying to make the
response slower to the extent that someone will notice?  I think I may take
a look at what GDK is actually up to here.

>I think even raw Xlib is slow this way too;

I've changed xcaverot to do this and the response improves dramatically to
near instant.  I've also tried changing it to use XSync which gives less of
an improvement.

Either GDK is doing some expensive stuff or we're talking at cross-purposes.

>[XSync] is very much quicker (it's probably just a pointer assignment or
>something).

But doesn't XSync totally discard the events?  That doesn't seem to be ideal
since mouse button clicks and key presses could be ignored.

Cheers,
Olly